3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/labelbox/default.nix

69 lines
1.2 KiB
Nix
Raw Normal View History

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