2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
defusedxml,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-didl-lite";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
pyroject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StevenLooman";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "python-didl-lite";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-A+G97T/udyL/yRqykq1sEGDEI6ZwtDBc5xUNFiJp0UQ=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ defusedxml ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "didl_lite" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DIDL-Lite (Digital Item Declaration Language) tools for Python";
|
|
|
|
homepage = "https://github.com/StevenLooman/python-didl-lite";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/StevenLooman/python-didl-lite/blob/${version}/CHANGES.rst";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|