mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
Merge pull request #336918 from dotlambda/python3Packages.labelbox
python312Packages.labelbox: 3.72.2 -> 3.77.0
This commit is contained in:
commit
58a8c0d9e0
@ -4,20 +4,24 @@
|
||||
fetchFromGitHub,
|
||||
geojson,
|
||||
google-api-core,
|
||||
hatchling,
|
||||
imagesize,
|
||||
mypy,
|
||||
nbconvert,
|
||||
nbformat,
|
||||
numpy,
|
||||
opencv4,
|
||||
packaging,
|
||||
pillow,
|
||||
pydantic,
|
||||
pyproj,
|
||||
pytest-cov-stub,
|
||||
pytest-order,
|
||||
pytest-rerunfailures,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
shapely,
|
||||
strenum,
|
||||
tqdm,
|
||||
@ -27,7 +31,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "labelbox";
|
||||
version = "3.72.2";
|
||||
version = "3.77.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -36,22 +40,16 @@ buildPythonPackage rec {
|
||||
owner = "Labelbox";
|
||||
repo = "labelbox-python";
|
||||
rev = "refs/tags/v.${version}";
|
||||
hash = "sha256-gor1LFT/XrWxWPwGn8lOkF46p/yrRILZp6fpeV+xvto=";
|
||||
hash = "sha256-kB+w4UWBlnYSqLnv14iB9+10O9z1mwKGit8XLUUdhnk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace-fail "--reruns 2 --reruns-delay 10 --durations=20 -n 10" ""
|
||||
|
||||
# disable pytest_plugins which requires `pygeotile`
|
||||
substituteInPlace tests/conftest.py \
|
||||
--replace-fail "pytest_plugins" "_pytest_plugins"
|
||||
'';
|
||||
|
||||
sourceRoot = "${src.name}/libs/labelbox";
|
||||
|
||||
pythonRelaxDeps = [ "python-dateutil" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
pythonRemoveDeps = [ "opencv-python-headless" ];
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
google-api-core
|
||||
@ -60,12 +58,13 @@ buildPythonPackage rec {
|
||||
requests
|
||||
strenum
|
||||
tqdm
|
||||
geojson
|
||||
mypy
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
data = [
|
||||
shapely
|
||||
geojson
|
||||
numpy
|
||||
pillow
|
||||
opencv4
|
||||
@ -74,13 +73,16 @@ buildPythonPackage rec {
|
||||
pyproj
|
||||
# pygeotile
|
||||
typing-extensions
|
||||
packaging
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
nbconvert
|
||||
nbformat
|
||||
pytest-cov-stub
|
||||
pytest-order
|
||||
pytest-rerunfailures
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
] ++ optional-dependencies.data;
|
||||
|
||||
@ -89,6 +91,7 @@ buildPythonPackage rec {
|
||||
"tests/integration"
|
||||
# Missing requirements
|
||||
"tests/data"
|
||||
"tests/unit/test_label_data_type.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "labelbox" ];
|
||||
|
Loading…
Reference in New Issue
Block a user