depot/third_party/nixpkgs/pkgs/development/python-modules/tern/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

62 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, docker
, dockerfile-parse
, requests
, stevedore
, pbr
, debian-inspector
, regex
, GitPython
, prettytable
, idna
, packageurl-python
}:
buildPythonPackage rec {
pname = "tern";
version = "2.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "dd7d8ad929ffe951b1f7f86310b9d5ba749b4306132c3611ff1d5a2c4d79d2bd";
};
preBuild = ''
cp requirements.{in,txt}
'';
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
pyyaml
docker
dockerfile-parse
requests
stevedore
debian-inspector
regex
GitPython
prettytable
idna
packageurl-python
];
# 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;
};
}