diff options
author | xeji <xeji@cat3.de> | 2018-03-30 23:02:01 +0200 |
---|---|---|
committer | xeji <xeji@cat3.de> | 2018-03-30 23:02:01 +0200 |
commit | 3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041 (patch) | |
tree | 478e931b445d2064cf8ed99a2dd4cc3f8cf70983 | |
parent | 0426d9001fbb1ecd7552aaaeebccb84ea8483fb9 (diff) | |
download | nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar.gz nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar.bz2 nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar.lz nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar.xz nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.tar.zst nixlib-3ea8574f1785172dedcb7ce7dbfa37e2d1ea8041.zip |
pythonPackages.smart_open: fix build, 1.5.6 -> 1.5.7
-rw-r--r-- | pkgs/development/python-modules/smart_open/default.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/smart_open/default.nix b/pkgs/development/python-modules/smart_open/default.nix index 2e2020f61f09..c4992eb9d9bb 100644 --- a/pkgs/development/python-modules/smart_open/default.nix +++ b/pkgs/development/python-modules/smart_open/default.nix @@ -3,7 +3,9 @@ , isPy3k , fetchPypi , boto +, boto3 , bz2file +, mock , moto , requests , responses @@ -12,14 +14,26 @@ buildPythonPackage rec { pname = "smart_open"; name = "${pname}-${version}"; - version = "1.5.6"; + version = "1.5.7"; src = fetchPypi { inherit pname version; - sha256 = "8fd2de1c359bd0074bd6d334a5b9820ae1c5b6ba563970b95052bace4b71baeb"; + sha256 = "0y1c29pdxxgxkymr7g2n59siqqaq351zbx9vz8433dxvzy4qgd7p"; }; - propagatedBuildInputs = [ boto bz2file requests responses moto ]; + # nixpkgs version of moto is >=1.2.0, remove version pin to fix build + postPatch = '' + substituteInPlace ./setup.py --replace "moto==0.4.31" "moto" + ''; + + # moto>=1.0.0 is backwards-incompatible and some tests fail with it, + # so disable tests for now + doCheck = false; + + checkInputs = [ mock moto responses ]; + + # upstream code requires both boto and boto3 + propagatedBuildInputs = [ boto boto3 bz2file requests ]; meta = { license = lib.licenses.mit; description = "smart_open is a Python 2 & Python 3 library for efficient streaming of very large file"; |