depot/third_party/nixpkgs/pkgs/development/python-modules/spdx-tools/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

50 lines
836 B
Nix

{ lib
, buildPythonPackage
, click
, fetchPypi
, pyyaml
, rdflib
, ply
, xmltodict
, pytestCheckHook
, pythonOlder
, uritools
}:
buildPythonPackage rec {
pname = "spdx-tools";
version = "0.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-l15tu6iPEFqKyyKr9T/pDw6dVjWiubH+SHeB6WliOxc=";
};
propagatedBuildInputs = [
click
ply
pyyaml
rdflib
uritools
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 = [ ];
};
}