2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-10-11 16:52:03 +00:00
|
|
|
, click
|
2021-04-25 03:57:28 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pyyaml
|
|
|
|
, rdflib
|
|
|
|
, ply
|
|
|
|
, xmltodict
|
|
|
|
, pytestCheckHook
|
2021-10-11 16:52:03 +00:00
|
|
|
, pythonOlder
|
2023-05-24 13:37:59 +00:00
|
|
|
, uritools
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spdx-tools";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.7.1";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-l15tu6iPEFqKyyKr9T/pDw6dVjWiubH+SHeB6WliOxc=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-10-11 16:52:03 +00:00
|
|
|
click
|
|
|
|
ply
|
2021-04-25 03:57:28 +00:00
|
|
|
pyyaml
|
|
|
|
rdflib
|
2023-05-24 13:37:59 +00:00
|
|
|
uritools
|
2021-04-25 03:57:28 +00:00
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-25 03:57:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spdx"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SPDX parser and tools";
|
|
|
|
homepage = "https://github.com/spdx/tools-python";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/spdx/tools-python/blob/v${version}/CHANGELOG.md";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|