1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/development/python-modules/piexif/default.nix

31 lines
853 B
Nix
Raw Normal View History

2017-08-28 10:16:16 +01:00
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
2017-05-06 19:20:25 +01:00
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "piexif";
2017-10-25 19:04:35 +01:00
version = "1.0.13";
2017-05-06 19:20:25 +01:00
# pillow needed for unit tests
buildInputs = [ pillow ];
2017-08-28 10:16:16 +01:00
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";
2017-10-25 19:04:35 +01:00
sha256 = "1d3dde03bd6298393645bc11d585b67a6ea98fd7e9e1aded6d5d6ec3e4cfbdda";
2017-05-06 19:20:25 +01:00
};
2017-08-28 10:16:16 +01:00
meta = with stdenv.lib; {
2017-05-06 19:20:25 +01:00
description = "Simplify Exif manipulations with Python";
homepage = https://github.com/hMatoba/Piexif;
2017-08-28 10:16:16 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
2017-05-06 19:20:25 +01:00
};
}