1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 defusedxml, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "python-didl-lite"; 13 version = "1.4.1"; 14 format = "setuptools"; 15 pyroject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "StevenLooman"; 21 repo = "python-didl-lite"; 22 tag = version; 23 hash = "sha256-YSP24GiSngwwvpwfOoKkm/i0qCtpryjcshxZCskf5BM="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 propagatedBuildInputs = [ defusedxml ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "didl_lite" ]; 33 34 meta = with lib; { 35 description = "DIDL-Lite (Digital Item Declaration Language) tools for Python"; 36 homepage = "https://github.com/StevenLooman/python-didl-lite"; 37 changelog = "https://github.com/StevenLooman/python-didl-lite/blob/${version}/CHANGES.rst"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ hexa ]; 40 }; 41}