diff --git a/srcpkgs/python-b2sdk/patches/lazy-fixture.patch b/srcpkgs/python-b2sdk/patches/lazy-fixture.patch new file mode 100644 index 00000000000..fc4deb502c8 --- /dev/null +++ b/srcpkgs/python-b2sdk/patches/lazy-fixture.patch @@ -0,0 +1,32 @@ +--- a/test/unit/account_info/fixtures.py ++++ b/test/unit/account_info/fixtures.py +@@ -9,6 +9,7 @@ + ###################################################################### + + import pytest ++import pytest_lazyfixture + + from apiver_deps import InMemoryAccountInfo, SqliteAccountInfo + +@@ -84,8 +85,8 @@ def sqlite_account_info(sqlite_account_i + + @pytest.fixture( + params=[ +- pytest.lazy_fixture('in_memory_account_info_factory'), +- pytest.lazy_fixture('sqlite_account_info_factory'), ++ pytest_lazyfixture.lazy_fixture('in_memory_account_info_factory'), ++ pytest_lazyfixture.lazy_fixture('sqlite_account_info_factory'), + ] + ) + def account_info_factory(request): +@@ -94,8 +95,8 @@ def account_info_factory(request): + + @pytest.fixture( + params=[ +- pytest.lazy_fixture('in_memory_account_info'), +- pytest.lazy_fixture('sqlite_account_info'), ++ pytest_lazyfixture.lazy_fixture('in_memory_account_info'), ++ pytest_lazyfixture.lazy_fixture('sqlite_account_info'), + ] + ) + def account_info(request): diff --git a/srcpkgs/python-b2sdk/template b/srcpkgs/python-b2sdk/template index ed5e4a57f99..38389f6e51e 100644 --- a/srcpkgs/python-b2sdk/template +++ b/srcpkgs/python-b2sdk/template @@ -1,20 +1,22 @@ # Template file for 'python-b2sdk' # keep python-b2sdk name to revert this package pkgname=python-b2sdk -version=1.17.2 +version=1.17.3 revision=1 wrksrc="b2sdk-${version}" -build_style=python3-module -hostmakedepends="python3-setuptools_scm python3-pip" +build_style=python3-pep517 +make_install_target="b2sdk-${version}-*-*-*.whl" +hostmakedepends="python3-setuptools_scm python3-wheel" depends="python3-logfury python3-Arrow python3-requests python3-six" -checkdepends="python3-pytest $depends python3-dateutil python3-nose +checkdepends="python3-pytest-lazy-fixture $depends python3-dateutil python3-mock python3-tqdm python3-pyflakes" short_desc="Backblaze's B2 Python SDK" maintainer="Andrea Brancaleoni " license="MIT" homepage="https://pypi.org/project/b2sdk" distfiles="${PYPI_SITE}/b/b2sdk/b2sdk-${version}.tar.gz" -checksum=c20a9e9951da17c65d2b0aa3b9551404d4e8a6e76dedab02816704fd406edcb9 +checksum=a723e38dd43cc33bd08ad95c84695f3533f0aacd0f1fac60a6548f516a63b703 +make_check=no post_install() { vlicense LICENSE