2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, jinja2
|
|
|
|
, pillow
|
|
|
|
, rasterio
|
|
|
|
, shapely
|
2020-11-21 19:51:51 +00:00
|
|
|
, ndjson
|
|
|
|
, backoff
|
2021-01-09 10:05:03 +00:00
|
|
|
, google-api-core
|
|
|
|
, backports-datetime-fromisoformat
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "labelbox";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "2.4.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "e5a631a94ac2059648a884bebf39f7ca1e689baef4a2497f9aa5ec598e24deb7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2 requests pillow rasterio shapely ndjson backoff
|
2021-01-09 10:05:03 +00:00
|
|
|
google-api-core backports-datetime-fromisoformat
|
2020-11-21 19:51:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Test cases are not running on pypi or GitHub
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
2020-11-21 19:51:51 +00:00
|
|
|
pythonImportsCheck = [ "labelbox" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Labelbox/Labelbox";
|
|
|
|
description = "Platform API for LabelBox";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|