2019-10-31 07:19:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, jinja2
|
|
|
|
, pillow
|
|
|
|
, rasterio
|
|
|
|
, shapely
|
2020-11-19 00:09:49 +00:00
|
|
|
, ndjson
|
|
|
|
, backoff
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2021-01-06 10:25:27 +00:00
|
|
|
, backports-datetime-fromisoformat
|
2019-10-31 07:19:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "labelbox";
|
2021-03-24 09:28:16 +00:00
|
|
|
version = "2.5.1";
|
2019-10-31 07:19:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:16 +00:00
|
|
|
sha256 = "7f2cbc5d4869d8acde865ad519fc1cc85338247cd7cf534334f988a040679219";
|
2019-10-31 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2020-11-19 00:09:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2 requests pillow rasterio shapely ndjson backoff
|
2021-01-06 10:25:27 +00:00
|
|
|
google-api-core backports-datetime-fromisoformat
|
2020-11-19 00:09:49 +00:00
|
|
|
];
|
2019-10-31 07:19:05 +00:00
|
|
|
|
|
|
|
# Test cases are not running on pypi or GitHub
|
2020-08-25 03:07:09 +01:00
|
|
|
doCheck = false;
|
2020-11-19 00:09:49 +00:00
|
|
|
pythonImportsCheck = [ "labelbox" ];
|
|
|
|
|
2019-10-31 07:19:05 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Labelbox/Labelbox";
|
2019-10-31 07:19:05 +00:00
|
|
|
description = "Platform API for LabelBox";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|