about summary refs log tree commit diff
path: root/pkgs/development/python-modules/exif/default.nix
blob: c1619436477a80faa1d64a0f70fb4eb15f7971f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitLab
, pythonOlder
, plum-py
, pytestCheckHook
, baseline
}:

buildPythonPackage rec {
  pname = "exif";
  version = "1.6.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitLab {
    owner = "TNThieding";
    repo = "exif";
    rev = "refs/tags/v${version}";
    hash = "sha256-uiHL3m0C6+YnAHRLwzMCSzffrQsSyVcuem6FBtTLxek=";
  };

  propagatedBuildInputs = [
    plum-py
  ];

  nativeCheckInputs = [
    pytestCheckHook
    baseline
  ];

  pythonImportsCheck = [
    "exif"
  ];

  meta = with lib; {
    description = "Read and modify image EXIF metadata using Python";
    homepage = "https://gitlab.com/TNThieding/exif";
    changelog = "https://gitlab.com/TNThieding/exif/-/blob/v${version}/docs/release_notes.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ dnr ];
  };
}