13 buildPythonPackage rec {
18 src = fetchFromGitHub {
19 owner = "jim-easterbrook";
20 repo = "python-exiv2";
21 rev = "refs/tags/${version}";
22 hash = "sha256-AXBhCe7AvhQkGZaLMTGExwgUYQGdRkk14Rtceugexag=";
25 # FAIL: test_localisation (test_types.TestTypesModule.test_localisation)
26 # FAIL: test_TimeValue (test_value.TestValueModule.test_TimeValue)
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):"
40 nativeBuildInputs = [ pkg-config ];
47 pythonImportsCheck = [ "exiv2" ];
48 nativeCheckInputs = [ unittestCheckHook ];
49 unittestFlagsArray = [
55 passthru.updateScript = gitUpdater { };
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 ];