summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-05-04 11:43:07 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-05-04 12:46:30 +0200
commita9558a193b2ee5b5040a4ba3fcdb4c383047e569 (patch)
tree9bea4f8146662ddced9ef3ab8b4ed2aa2b0e95fa /pkgs
parent741ed21beaa16701ea740e0508b59c1496f42b5c (diff)
downloadnixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar.gz
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar.bz2
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar.lz
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar.xz
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.tar.zst
nixpkgs-a9558a193b2ee5b5040a4ba3fcdb4c383047e569.zip
python3Packages.labelbox: 2.5.1 -> 2.5.4
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/labelbox/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix
index ce7cff4d79b..e1ff7a98a02 100644
--- a/pkgs/development/python-modules/labelbox/default.nix
+++ b/pkgs/development/python-modules/labelbox/default.nix
@@ -4,28 +4,36 @@
 , requests
 , jinja2
 , pillow
+, dataclasses
+, pythonOlder
 , rasterio
 , shapely
 , ndjson
 , backoff
+, pydantic
 , 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";
+    sha256 = "sha256-L1KjP8Yzx9adTK84+Nf9JnirT4p3D3lwulWw6W1L/88=";
   };
 
   propagatedBuildInputs = [
     jinja2 requests pillow rasterio shapely ndjson backoff
-    google-api-core backports-datetime-fromisoformat
+    google-api-core backports-datetime-fromisoformat pydantic
   ];
 
+  postPatch = ''
+    substituteInPlace setup.py --replace "pydantic==1.8" "pydantic>=1.8"
+  '';
+
   # Test cases are not running on pypi or GitHub
   doCheck = false;
   pythonImportsCheck = [ "labelbox" ];