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
|
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";
|
2021-10-11 16:52:03 +00:00
|
|
|
version = "0.7.0a3";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-11 16:52:03 +00:00
|
|
|
sha256 = "sha256-afV1W1n5ubHhqfLFpPO5fxaIy5TaZdw9eDy3JYOJ1oE=";
|
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
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spdx"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SPDX parser and tools";
|
|
|
|
homepage = "https://github.com/spdx/tools-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|