nixpkgs/pkgs/development/python-modules/piexif/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

30 lines
821 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pillow }:
buildPythonPackage rec {
pname = "piexif";
version = "1.0.13";
# 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
'';
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1d3dde03bd6298393645bc11d585b67a6ea98fd7e9e1aded6d5d6ec3e4cfbdda";
};
meta = with stdenv.lib; {
description = "Simplify Exif manipulations with Python";
homepage = https://github.com/hMatoba/Piexif;
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}