1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, defusedxml 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "python-didl-lite"; 11 version = "1.3.2"; 12 disabled = pythonOlder "3.5.3"; 13 14 src = fetchFromGitHub { 15 owner = "StevenLooman"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-laKmWGDEzlBVJCUSKxekjPEXVlAz4MIzM7dNJfta/ek="; 19 }; 20 21 propagatedBuildInputs = [ 22 defusedxml 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "didl_lite" ]; 30 31 meta = with lib; { 32 description = "DIDL-Lite (Digital Item Declaration Language) tools for Python"; 33 homepage = "https://github.com/StevenLooman/python-didl-lite"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ hexa ]; 36 }; 37}