a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
48 lines
841 B
Nix
48 lines
841 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchPypi
|
|
, pyyaml
|
|
, rdflib
|
|
, ply
|
|
, xmltodict
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spdx-tools";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QqKMKBedWOFYF1av9IgQuyJ6b5mNhhMpIZVJdEDcAK8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
ply
|
|
pyyaml
|
|
rdflib
|
|
xmltodict
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"spdx"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "SPDX parser and tools";
|
|
homepage = "https://github.com/spdx/tools-python";
|
|
changelog = "https://github.com/spdx/tools-python/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|