diff options
author | OTABI Tomoya <tomoya.otabi@gmail.com> | 2023-11-24 09:36:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 09:36:48 +0900 |
commit | 8b8c9407844599546393146bfac901290e0ab96b (patch) | |
tree | c42e72f9eaf9663d0991b90f6f1a752bed2fd9ce | |
parent | ac8b5273bb9b0c6b9de3adde72c8c4560217933a (diff) | |
parent | 68c2c3d58fde250550f9aa285ae9677bddfeeb42 (diff) | |
download | nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar.gz nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar.bz2 nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar.lz nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar.xz nixlib-8b8c9407844599546393146bfac901290e0ab96b.tar.zst nixlib-8b8c9407844599546393146bfac901290e0ab96b.zip |
Merge pull request #269427 from natsukium/labelbox/update
python311Packages.labelbox: 3.52.0 -> 3.56.0; fix build
-rw-r--r-- | pkgs/development/python-modules/labelbox/default.nix | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix index c0b635abf460..cf71b36b3c2b 100644 --- a/pkgs/development/python-modules/labelbox/default.nix +++ b/pkgs/development/python-modules/labelbox/default.nix @@ -1,5 +1,4 @@ { lib -, backoff , buildPythonPackage , fetchFromGitHub , geojson @@ -7,21 +6,17 @@ , imagesize , nbconvert , nbformat -, ndjson , numpy -, opencv - # , opencv-python +, opencv4 , packaging , pillow , pydantic - # , pygeotile , pyproj -, pytest-cases , pytestCheckHook +, python-dateutil , pythonOlder -, pythonRelaxDepsHook -, rasterio , requests +, setuptools , shapely , tqdm , typeguard @@ -30,8 +25,8 @@ buildPythonPackage rec { pname = "labelbox"; - version = "3.52.0"; - format = "setuptools"; + version = "3.56.0"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -39,7 +34,7 @@ buildPythonPackage rec { owner = "Labelbox"; repo = "labelbox-python"; rev = "refs/tags/v.${version}"; - hash = "sha256-t0Q+6tnUPK2oqjdAwwYeSebgn2EQ1fBivw115L8ndOg="; + hash = "sha256-JRh14XpW/iGeBWrslm7weCP/vyJ7eZICqRgQpE2wjXs="; }; postPatch = '' @@ -48,18 +43,13 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - - pythonRelaxDeps = [ - "backoff" + setuptools ]; propagatedBuildInputs = [ - backoff google-api-core - ndjson pydantic + python-dateutil requests tqdm ]; @@ -70,7 +60,7 @@ buildPythonPackage rec { geojson numpy pillow - # opencv-python + opencv4 typeguard imagesize pyproj @@ -83,10 +73,15 @@ buildPythonPackage rec { nativeCheckInputs = [ nbconvert nbformat - pytest-cases pytestCheckHook ] ++ passthru.optional-dependencies.data; + # disable pytest_plugins which requires `pygeotile` + preCheck = '' + substituteInPlace tests/conftest.py \ + --replace "pytest_plugins" "_pytest_plugins" + ''; + disabledTestPaths = [ # Requires network access "tests/integration" @@ -94,11 +89,6 @@ buildPythonPackage rec { "tests/data" ]; - pytestFlagsArray = [ - # see tox.ini - "-k 'not notebooks'" - ]; - pythonImportsCheck = [ "labelbox" ]; |