nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 defusedxml,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "python-didl-lite";
12 version = "1.5.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "StevenLooman";
17 repo = "python-didl-lite";
18 tag = version;
19 hash = "sha256-pdXdGRycMB6M6qnPl+Z+ezRw6td45IqYkEpx4YtL1rQ=";
20 };
21
22 build-system = [ setuptools ];
23
24 propagatedBuildInputs = [ defusedxml ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "didl_lite" ];
29
30 meta = {
31 description = "DIDL-Lite (Digital Item Declaration Language) tools for Python";
32 homepage = "https://github.com/StevenLooman/python-didl-lite";
33 changelog = "https://github.com/StevenLooman/python-didl-lite/blob/${src.tag}/CHANGES.rst";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ hexa ];
36 };
37}