diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-05-06 15:48:25 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-05-06 15:48:25 -0400 |
commit | a3e54cb5823b4f338ce46acccb142bae7de585c2 (patch) | |
tree | 223806f291391df55301db8843a4a9bfe9f68349 /pkgs/development/python-modules/labelbox/default.nix | |
parent | c63e69cd894faada0daaef386fcc6273a957c66e (diff) | |
parent | 5f7ad00ae9e1ee00573798e7f9ddfdd28456b075 (diff) | |
download | nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar.gz nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar.bz2 nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar.lz nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar.xz nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.tar.zst nixpkgs-a3e54cb5823b4f338ce46acccb142bae7de585c2.zip |
Merge remote-tracking branch 'upstream/staging-next' into staging
Diffstat (limited to 'pkgs/development/python-modules/labelbox/default.nix')
-rw-r--r-- | pkgs/development/python-modules/labelbox/default.nix | 59 |
1 files changed, 44 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix index ce7cff4d79b..957b8ad5fd1 100644 --- a/pkgs/development/python-modules/labelbox/default.nix +++ b/pkgs/development/python-modules/labelbox/default.nix @@ -1,38 +1,67 @@ { lib +, backoff +, backports-datetime-fromisoformat , buildPythonPackage -, fetchPypi -, requests +, dataclasses +, fetchFromGitHub +, google-api-core , jinja2 +, ndjson , pillow +, pydantic +, pytest-cases +, pytestCheckHook +, pythonOlder , rasterio +, requests , shapely -, ndjson -, backoff -, google-api-core -, backports-datetime-fromisoformat }: buildPythonPackage rec { pname = "labelbox"; - version = "2.5.1"; + version = "2.5.4"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "7f2cbc5d4869d8acde865ad519fc1cc85338247cd7cf534334f988a040679219"; + src = fetchFromGitHub { + owner = "Labelbox"; + repo = "labelbox-python"; + rev = "v${version}"; + sha256 = "0182klvm8bjcm8fkl9w8ypj12s026czgid8ldl6jjvmzhxpmss68"; }; propagatedBuildInputs = [ - jinja2 requests pillow rasterio shapely ndjson backoff - google-api-core backports-datetime-fromisoformat + 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" ]; - # Test cases are not running on pypi or GitHub - doCheck = false; pythonImportsCheck = [ "labelbox" ]; meta = with lib; { - homepage = "https://github.com/Labelbox/Labelbox"; description = "Platform API for LabelBox"; + homepage = "https://github.com/Labelbox/labelbox-python"; license = licenses.asl20; maintainers = with maintainers; [ rakesh4g ]; }; |