nixpkgs/pkgs/development/python-modules/tern/default.nix

61 lines
1.0 KiB
Nix
Raw Normal View History

2021-04-16 01:30:48 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, docker
, dockerfile-parse
, requests
, stevedore
, pbr
, debian-inspector
2021-04-16 01:30:48 +00:00
, regex
, GitPython
, prettytable
, idna
}:
2021-06-30 19:53:22 +00:00
2021-04-16 01:30:48 +00:00
buildPythonPackage rec {
pname = "tern";
2021-06-18 21:47:40 +00:00
version = "2.6.1";
2021-04-16 01:30:48 +00:00
src = fetchPypi {
inherit pname version;
2021-06-18 21:47:40 +00:00
sha256 = "749c18ef493ebe3ac28624b2b26c6e38f77de2afd6a6579d2c92393d8fbdbd46";
2021-04-16 01:30:48 +00:00
};
preBuild = ''
cp requirements.{in,txt}
'';
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
pyyaml
docker
dockerfile-parse
requests
stevedore
debian-inspector
2021-04-16 01:30:48 +00:00
regex
GitPython
prettytable
idna
];
# No tests
doCheck = false;
pythonImportsCheck = [
"tern"
];
meta = with lib; {
description = "A software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles";
homepage = "https://github.com/tern-tools/tern";
license = licenses.bsd2;
maintainers = teams.determinatesystems.members;
};
}