1{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, plum-py, pytestCheckHook, baseline }:
2
3buildPythonPackage rec {
4 pname = "exif";
5 version = "1.2.0";
6 disabled = !isPy3k;
7
8 src = fetchFromGitLab {
9 owner = "TNThieding";
10 repo = "exif";
11 rev = "686857c677f489759db90b1ad61fa1cc1cac5f9a";
12 sha256 = "0z2if23kmi0iyxviz32mlqs997i3dqpqfz6nznlwkhkkb6rkwwnh";
13 };
14
15 propagatedBuildInputs = [ plum-py ];
16
17 postPatch = ''
18 substituteInPlace setup.py \
19 --replace "plum-py==0.3.1" "plum-py>=0.3.1"
20 '';
21
22 checkInputs = [ pytestCheckHook baseline ];
23
24 meta = with lib; {
25 description = "Read and modify image EXIF metadata using Python";
26 homepage = "https://gitlab.com/TNThieding/exif";
27 license = licenses.mit;
28 maintainers = with maintainers; [ dnr ];
29 };
30}