diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-08-28 10:16:16 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-08-28 10:17:01 +0100 |
commit | 5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f (patch) | |
tree | 04558b00cd7b715a4dc2105c23eba33f93bce60d /pkgs/development/python-modules/piexif | |
parent | 5d62a4d1819dc7f702cf2380ef8eb8b2427a292c (diff) | |
download | nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar.gz nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar.bz2 nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar.lz nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar.xz nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.tar.zst nixlib-5f5a5ba58efdd2b5d524a647cc8a43dc7dbde38f.zip |
python.pkgs.piexif: fix build
Diffstat (limited to 'pkgs/development/python-modules/piexif')
-rw-r--r-- | pkgs/development/python-modules/piexif/default.nix | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/piexif/default.nix b/pkgs/development/python-modules/piexif/default.nix index e21593993cd2..2c921959852a 100644 --- a/pkgs/development/python-modules/piexif/default.nix +++ b/pkgs/development/python-modules/piexif/default.nix @@ -1,4 +1,4 @@ -{lib, buildPythonPackage, fetchurl, pillow}: +{ stdenv, buildPythonPackage, fetchPypi, pillow }: buildPythonPackage rec { name = "${pname}-${version}"; @@ -8,17 +8,23 @@ buildPythonPackage rec { # pillow needed for unit tests buildInputs = [ pillow ]; - # No .tar.gz source available at PyPI, only .zip source, so need to use - # fetchurl because fetchPypi doesn't support .zip. - src = fetchurl { - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.zip"; + postPatch = '' + # incompatibility with pillow => 4.2.0 + # has been resolved in https://github.com/hMatoba/Piexif/commit/c3a8272f5e6418f223b25f6486d8ddda201bbdf1 + # remove this in the next version + sed -i -e 's/RGBA/RGB/' tests/s_test.py + ''; + + src = fetchPypi { + inherit pname version; + extension = "zip"; sha256 = "15dvdr7b5xxsbsq5k6kq8h0xnzrkqzc08dzlih48a21x27i02bii"; }; - meta = { + meta = with stdenv.lib; { description = "Simplify Exif manipulations with Python"; homepage = https://github.com/hMatoba/Piexif; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ jluttine ]; + license = licenses.mit; + maintainers = with maintainers; [ jluttine ]; }; } |