biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / exiv2 / default.nix
blob9529615d0b1ddbcd494827f0f2d69fbe8fbd14f1
2   lib,
3   pkg-config,
4   exiv2,
5   gettext,
6   fetchFromGitHub,
7   gitUpdater,
8   buildPythonPackage,
9   setuptools,
10   toml,
11   unittestCheckHook,
13 buildPythonPackage rec {
14   pname = "exiv2";
15   version = "0.17.1";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "jim-easterbrook";
20     repo = "python-exiv2";
21     rev = "refs/tags/${version}";
22     hash = "sha256-AXBhCe7AvhQkGZaLMTGExwgUYQGdRkk14Rtceugexag=";
23   };
25   # FAIL: test_localisation (test_types.TestTypesModule.test_localisation)
26   # FAIL: test_TimeValue (test_value.TestValueModule.test_TimeValue)
27   postPatch = ''
28     substituteInPlace tests/test_value.py \
29       --replace-fail "def test_TimeValue(self):" "@unittest.skip('skipping')
30         def test_TimeValue(self):"
31     substituteInPlace tests/test_types.py \
32       --replace-fail "def test_localisation(self):" "@unittest.skip('skipping')
33         def test_localisation(self):"
34   '';
36   build-system = [
37     setuptools
38     toml
39   ];
40   nativeBuildInputs = [ pkg-config ];
42   buildInputs = [
43     exiv2
44     gettext
45   ];
47   pythonImportsCheck = [ "exiv2" ];
48   nativeCheckInputs = [ unittestCheckHook ];
49   unittestFlagsArray = [
50     "-s"
51     "tests"
52     "-v"
53   ];
55   passthru.updateScript = gitUpdater { };
57   meta = {
58     description = "Low level Python interface to the Exiv2 C++ library";
59     homepage = "https://github.com/jim-easterbrook/python-exiv2";
60     changelog = "https://python-exiv2.readthedocs.io/en/release-${version}/misc/changelog.html";
61     license = lib.licenses.gpl3Plus;
62     maintainers = with lib.maintainers; [ zebreus ];
63   };