mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ lib
|
|
, backoff
|
|
, backports-datetime-fromisoformat
|
|
, buildPythonPackage
|
|
, dataclasses
|
|
, fetchFromGitHub
|
|
, google-api-core
|
|
, jinja2
|
|
, ndjson
|
|
, pillow
|
|
, pydantic
|
|
, pytest-cases
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rasterio
|
|
, requests
|
|
, shapely
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "labelbox";
|
|
version = "2.5.4";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Labelbox";
|
|
repo = "labelbox-python";
|
|
rev = "v${version}";
|
|
sha256 = "0182klvm8bjcm8fkl9w8ypj12s026czgid8ldl6jjvmzhxpmss68";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
backoff
|
|
backports-datetime-fromisoformat
|
|
dataclasses
|
|
google-api-core
|
|
jinja2
|
|
ndjson
|
|
pillow
|
|
pydantic
|
|
rasterio
|
|
requests
|
|
shapely
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8"
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytest-cases
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Requires network access
|
|
"tests/integration"
|
|
];
|
|
|
|
pythonImportsCheck = [ "labelbox" ];
|
|
|
|
meta = with lib; {
|
|
description = "Platform API for LabelBox";
|
|
homepage = "https://github.com/Labelbox/labelbox-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
};
|
|
}
|