mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
47 lines
728 B
Nix
47 lines
728 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchPypi
|
|
, pyyaml
|
|
, rdflib
|
|
, ply
|
|
, xmltodict
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spdx-tools";
|
|
version = "0.7.0a3";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-afV1W1n5ubHhqfLFpPO5fxaIy5TaZdw9eDy3JYOJ1oE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
ply
|
|
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;
|
|
};
|
|
}
|