python.pkgs.piexif: fix build
This commit is contained in:
parent
5d62a4d181
commit
5f5a5ba58e
@ -1,4 +1,4 @@
|
|||||||
{lib, buildPythonPackage, fetchurl, pillow}:
|
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
@ -8,17 +8,23 @@ buildPythonPackage rec {
|
|||||||
# pillow needed for unit tests
|
# pillow needed for unit tests
|
||||||
buildInputs = [ pillow ];
|
buildInputs = [ pillow ];
|
||||||
|
|
||||||
# No .tar.gz source available at PyPI, only .zip source, so need to use
|
postPatch = ''
|
||||||
# fetchurl because fetchPypi doesn't support .zip.
|
# incompatibility with pillow => 4.2.0
|
||||||
src = fetchurl {
|
# has been resolved in https://github.com/hMatoba/Piexif/commit/c3a8272f5e6418f223b25f6486d8ddda201bbdf1
|
||||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.zip";
|
# 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";
|
sha256 = "15dvdr7b5xxsbsq5k6kq8h0xnzrkqzc08dzlih48a21x27i02bii";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Simplify Exif manipulations with Python";
|
description = "Simplify Exif manipulations with Python";
|
||||||
homepage = https://github.com/hMatoba/Piexif;
|
homepage = https://github.com/hMatoba/Piexif;
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ jluttine ];
|
maintainers = with maintainers; [ jluttine ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user