2021-01-19 02:05:35 -08:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pillow }:
|
2017-05-06 11:20:25 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "piexif";
|
2019-07-16 04:50:12 -07:00
|
|
|
version = "1.1.3";
|
2017-05-06 11:20:25 -07:00
|
|
|
|
2021-01-19 02:05:35 -08:00
|
|
|
# patch does not apply to PyPI sdist due to different line endings
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hMatoba";
|
|
|
|
repo = "Piexif";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1akmaxq1cjr8wghwaaql1bd3sajl8psshl58lprgfsigrvnklp8b";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix tests with Pillow >= 7.2.0: https://github.com/hMatoba/Piexif/pull/109
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hMatoba/Piexif/commit/5209b53e9689ce28dcd045f384633378d619718f.patch";
|
|
|
|
sha256 = "0ak571jf76r1vszp2g3cd5c16fz2zkbi43scayy933m5qdrhd8g1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-10-29 01:41:53 -07:00
|
|
|
# Pillow needed for unit tests
|
|
|
|
checkInputs = [ pillow ];
|
2017-08-28 02:16:16 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-05-06 11:20:25 -07:00
|
|
|
description = "Simplify Exif manipulations with Python";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/hMatoba/Piexif";
|
2017-08-28 02:16:16 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2017-05-06 11:20:25 -07:00
|
|
|
};
|
|
|
|
}
|