Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 pkg-config, 4 exiv2, 5 python3Packages, 6 fetchFromGitHub, 7 gitUpdater, 8}: 9python3Packages.buildPythonPackage rec { 10 pname = "exiv2"; 11 version = "0.16.3"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "jim-easterbrook"; 16 repo = "python-exiv2"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-DX0pg80fOSkWqrIvcye0btZGglnizzM9ZEuVEpnEJKQ="; 19 }; 20 21 build-system = with python3Packages; [ 22 setuptools 23 toml 24 ]; 25 nativeBuildInputs = [ pkg-config ]; 26 27 buildInputs = [ exiv2 ]; 28 29 pythonImportsCheck = [ "exiv2" ]; 30 nativeCheckInputs = with python3Packages; [ unittestCheckHook ]; 31 unittestFlagsArray = [ 32 "-s" 33 "tests" 34 "-v" 35 ]; 36 37 passthru.updateScript = gitUpdater { }; 38 39 meta = { 40 description = "Low level Python interface to the Exiv2 C++ library"; 41 homepage = "https://github.com/jim-easterbrook/python-exiv2"; 42 changelog = "https://python-exiv2.readthedocs.io/en/release-${version}/misc/changelog.html"; 43 license = lib.licenses.gpl3Plus; 44 maintainers = with lib.maintainers; [ zebreus ]; 45 }; 46}