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 pyroject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "StevenLooman";
20 repo = "python-didl-lite";
21 tag = version;
22 hash = "sha256-YSP24GiSngwwvpwfOoKkm/i0qCtpryjcshxZCskf5BM=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [ defusedxml ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "didl_lite" ];
32
33 meta = with lib; {
34 description = "DIDL-Lite (Digital Item Declaration Language) tools for Python";
35 homepage = "https://github.com/StevenLooman/python-didl-lite";
36 changelog = "https://github.com/StevenLooman/python-didl-lite/blob/${version}/CHANGES.rst";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ hexa ];
39 };
40}