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