1{ stdenv, buildPythonPackage, fetchPypi, pillow }:
2
3buildPythonPackage rec {
4 pname = "piexif";
5 version = "1.0.13";
6
7 # pillow needed for unit tests
8 buildInputs = [ pillow ];
9
10 postPatch = ''
11 # incompatibility with pillow => 4.2.0
12 # has been resolved in https://github.com/hMatoba/Piexif/commit/c3a8272f5e6418f223b25f6486d8ddda201bbdf1
13 # remove this in the next version
14 sed -i -e 's/RGBA/RGB/' tests/s_test.py
15 '';
16
17 src = fetchPypi {
18 inherit pname version;
19 extension = "zip";
20 sha256 = "1d3dde03bd6298393645bc11d585b67a6ea98fd7e9e1aded6d5d6ec3e4cfbdda";
21 };
22
23 meta = with stdenv.lib; {
24 description = "Simplify Exif manipulations with Python";
25 homepage = https://github.com/hMatoba/Piexif;
26 license = licenses.mit;
27 maintainers = with maintainers; [ jluttine ];
28 };
29}