2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2020-08-20 17:08:02 +00:00
|
|
|
, defusedxml
|
2021-04-05 15:23:46 +00:00
|
|
|
, pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
, 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-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
defusedxml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +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 ];
|
|
|
|
};
|
|
|
|
}
|