2019-10-31 07:19:05 +00:00
|
|
|
{ lib
|
2021-05-04 11:34:09 +00:00
|
|
|
, backoff
|
|
|
|
, backports-datetime-fromisoformat
|
2019-10-31 07:19:05 +00:00
|
|
|
, buildPythonPackage
|
2021-05-04 11:34:09 +00:00
|
|
|
, dataclasses
|
|
|
|
, fetchFromGitHub
|
|
|
|
, google-api-core
|
2019-10-31 07:19:05 +00:00
|
|
|
, jinja2
|
2021-05-04 11:34:09 +00:00
|
|
|
, ndjson
|
2019-10-31 07:19:05 +00:00
|
|
|
, pillow
|
2021-05-04 11:34:09 +00:00
|
|
|
, pydantic
|
|
|
|
, pytest-cases
|
|
|
|
, pytestCheckHook
|
2021-05-04 09:43:07 +00:00
|
|
|
, pythonOlder
|
2019-10-31 07:19:05 +00:00
|
|
|
, rasterio
|
2021-05-04 11:34:09 +00:00
|
|
|
, requests
|
2019-10-31 07:19:05 +00:00
|
|
|
, shapely
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "labelbox";
|
2022-03-02 21:42:03 +00:00
|
|
|
version = "3.15.0";
|
2021-05-04 09:43:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-10-31 07:19:05 +00:00
|
|
|
|
2021-05-04 11:34:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Labelbox";
|
|
|
|
repo = "labelbox-python";
|
2022-03-02 21:42:03 +00:00
|
|
|
rev = "v.${version}";
|
|
|
|
sha256 = "sha256-pJkDC/2EDPWbIw9WqV9kdYmr4X6apXtholzd0IYjgDg=";
|
2019-10-31 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2020-11-19 00:09:49 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-04 11:34:09 +00:00
|
|
|
backoff
|
|
|
|
backports-datetime-fromisoformat
|
|
|
|
dataclasses
|
|
|
|
google-api-core
|
|
|
|
jinja2
|
|
|
|
ndjson
|
|
|
|
pillow
|
|
|
|
pydantic
|
|
|
|
rasterio
|
|
|
|
requests
|
|
|
|
shapely
|
2020-11-19 00:09:49 +00:00
|
|
|
];
|
2019-10-31 07:19:05 +00:00
|
|
|
|
2021-05-04 09:43:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8"
|
|
|
|
'';
|
|
|
|
|
2021-05-04 11:34:09 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-cases
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires network access
|
|
|
|
"tests/integration"
|
|
|
|
];
|
|
|
|
|
2020-11-19 00:09:49 +00:00
|
|
|
pythonImportsCheck = [ "labelbox" ];
|
|
|
|
|
2019-10-31 07:19:05 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Platform API for LabelBox";
|
2021-05-04 11:34:09 +00:00
|
|
|
homepage = "https://github.com/Labelbox/labelbox-python";
|
2019-10-31 07:19:05 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|