nixpkgs/pkgs/development/python-modules/labelbox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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.15.0";
disabled = pythonOlder "3.6";
2019-10-31 07:19:05 +00:00
src = fetchFromGitHub {
owner = "Labelbox";
repo = "labelbox-python";
rev = "v.${version}";
sha256 = "sha256-pJkDC/2EDPWbIw9WqV9kdYmr4X6apXtholzd0IYjgDg=";
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 ];
};
}