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