python310Packages.labelbox: 3.24.1 -> 3.33.1

Changelog: https://github.com/Labelbox/labelbox-python/blob/v.3.33.1/CHANGELOG.md
This commit is contained in:
Fabian Affolter 2022-12-20 09:56:02 +01:00
parent f4137f3e93
commit ac66bd13ee

View File

@ -1,65 +1,103 @@
{ lib { lib
, backoff , backoff
, backports-datetime-fromisoformat
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, geojson
, google-api-core , google-api-core
, jinja2 , imagesize
, ndjson , ndjson
, numpy
, opencv
# , opencv-python
, packaging
, pillow , pillow
, pydantic , pydantic
# , pygeotile
, pyproj
, pytest-cases , pytest-cases
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, pythonRelaxDepsHook
, rasterio , rasterio
, requests , requests
, shapely , shapely
, tqdm
, typeguard
, typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "labelbox"; pname = "labelbox";
version = "3.24.1"; version = "3.33.1";
format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Labelbox"; owner = "Labelbox";
repo = "labelbox-python"; repo = "labelbox-python";
rev = "refs/tags/v.${version}"; rev = "refs/tags/v.${version}";
sha256 = "sha256-pcIbCtVOr6pwodgNv8aGZ+k2Z9cQPCQm1UBJWJAlj/o="; hash = "sha256-lYhgBELeVtNUp6ZvcSTIeKp2YkaGt6MH8BbzSERGHXw=";
}; };
postPatch = ''
substituteInPlace pytest.ini \
--replace "-s -vv -x --reruns 5 --reruns-delay 10 --durations=20" "-s -vv -x --durations=20"
'';
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"backoff"
];
propagatedBuildInputs = [ propagatedBuildInputs = [
backoff backoff
backports-datetime-fromisoformat
google-api-core google-api-core
jinja2
ndjson ndjson
pillow
pydantic pydantic
rasterio
requests requests
shapely tqdm
]; ];
postPatch = '' passthru.optional-dependencies = {
substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8" data = [
''; shapely
geojson
numpy
pillow
# opencv-python
typeguard
imagesize
pyproj
# pygeotile
typing-extensions
packaging
];
};
checkInputs = [ checkInputs = [
pytest-cases pytest-cases
pytestCheckHook pytestCheckHook
]; ] ++ passthru.optional-dependencies.data;
disabledTestPaths = [ disabledTestPaths = [
# Requires network access # Requires network access
"tests/integration" "tests/integration"
# Missing requirements
"tests/data"
]; ];
pythonImportsCheck = [ "labelbox" ]; pythonImportsCheck = [
"labelbox"
];
meta = with lib; { meta = with lib; {
description = "Platform API for LabelBox"; description = "Platform API for LabelBox";
homepage = "https://github.com/Labelbox/labelbox-python"; homepage = "https://github.com/Labelbox/labelbox-python";
changelog = "https://github.com/Labelbox/labelbox-python/blob/v.${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };