02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{ lib
|
|
, backoff
|
|
, backports-datetime-fromisoformat
|
|
, buildPythonPackage
|
|
, dataclasses
|
|
, fetchFromGitHub
|
|
, google-api-core
|
|
, jinja2
|
|
, ndjson
|
|
, pillow
|
|
, pydantic
|
|
, pytest-cases
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rasterio
|
|
, requests
|
|
, shapely
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "labelbox";
|
|
version = "3.24.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Labelbox";
|
|
repo = "labelbox-python";
|
|
rev = "refs/tags/v.${version}";
|
|
sha256 = "sha256-pcIbCtVOr6pwodgNv8aGZ+k2Z9cQPCQm1UBJWJAlj/o=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
backoff
|
|
backports-datetime-fromisoformat
|
|
dataclasses
|
|
google-api-core
|
|
jinja2
|
|
ndjson
|
|
pillow
|
|
pydantic
|
|
rasterio
|
|
requests
|
|
shapely
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8"
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytest-cases
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Requires network access
|
|
"tests/integration"
|
|
];
|
|
|
|
pythonImportsCheck = [ "labelbox" ];
|
|
|
|
meta = with lib; {
|
|
description = "Platform API for LabelBox";
|
|
homepage = "https://github.com/Labelbox/labelbox-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
};
|
|
}
|