2019-10-31 07:19:05 +00:00
|
|
|
{ lib
|
2021-05-04 12:34:09 +01:00
|
|
|
, backoff
|
|
|
|
, backports-datetime-fromisoformat
|
2019-10-31 07:19:05 +00:00
|
|
|
, buildPythonPackage
|
2021-05-04 12:34:09 +01:00
|
|
|
, dataclasses
|
|
|
|
, fetchFromGitHub
|
|
|
|
, google-api-core
|
2019-10-31 07:19:05 +00:00
|
|
|
, jinja2
|
2021-05-04 12:34:09 +01:00
|
|
|
, ndjson
|
2019-10-31 07:19:05 +00:00
|
|
|
, pillow
|
2021-05-04 12:34:09 +01:00
|
|
|
, pydantic
|
|
|
|
, pytest-cases
|
|
|
|
, pytestCheckHook
|
2021-05-04 10:43:07 +01:00
|
|
|
, pythonOlder
|
2019-10-31 07:19:05 +00:00
|
|
|
, rasterio
|
2021-05-04 12:34:09 +01:00
|
|
|
, requests
|
2019-10-31 07:19:05 +00:00
|
|
|
, shapely
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "labelbox";
|
2021-06-19 02:39:08 +01:00
|
|
|
version = "2.6.0";
|
2021-05-04 10:43:07 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-10-31 07:19:05 +00:00
|
|
|
|
2021-05-04 12:34:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Labelbox";
|
|
|
|
repo = "labelbox-python";
|
2021-06-19 02:39:08 +01:00
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "1lkvc926i3c7isqhaja6k013qgla44cdhvkx76gpdyywq53i9mcb";
|
2019-10-31 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2020-11-19 00:09:49 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-04 12:34:09 +01: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 10:43:07 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8"
|
|
|
|
'';
|
|
|
|
|
2021-05-04 12:34:09 +01: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 12:34:09 +01:00
|
|
|
homepage = "https://github.com/Labelbox/labelbox-python";
|
2019-10-31 07:19:05 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|