pythonPackages.piexif: 1.0.13 -> 1.1.2
This commit is contained in:
parent
336f11c3b1
commit
51f6d7f244
|
@ -2,22 +2,15 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "piexif";
|
||||
version = "1.0.13";
|
||||
version = "1.1.2";
|
||||
|
||||
# pillow needed for unit tests
|
||||
buildInputs = [ pillow ];
|
||||
|
||||
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
|
||||
'';
|
||||
# Pillow needed for unit tests
|
||||
checkInputs = [ pillow ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1d3dde03bd6298393645bc11d585b67a6ea98fd7e9e1aded6d5d6ec3e4cfbdda";
|
||||
sha256 = "0dj6wiw4mk65zn7p0qpghra39mf88m3ph2xn7ff9jvasgczrgkb0";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
|
@ -22,6 +22,8 @@ buildPythonPackage rec {
|
|||
postPatch = ''
|
||||
substituteInPlace "setup.py" \
|
||||
--replace '"argparse",' "" ${lib.optionalString isPy3k ''--replace '"futures",' ""''}
|
||||
substituteInPlace "setup.py" \
|
||||
--replace "piexif>=1.0.13,<1.1.0" "piexif>=1.0.13"
|
||||
substituteInPlace "tests/test_utils.py" \
|
||||
--replace "/bin/ls" "${coreutils}/bin/ls"
|
||||
substituteInPlace "tests/detectors/test_face_detector.py" \
|
||||
|
|
Loading…
Reference in a new issue