depot/third_party/nixpkgs/pkgs/development/python-modules/tern/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

67 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
debian-inspector,
docker,
dockerfile-parse,
fetchPypi,
gitpython,
idna,
license-expression,
packageurl-python,
pbr,
prettytable,
pythonOlder,
pyyaml,
regex,
requests,
stevedore,
}:
buildPythonPackage rec {
pname = "tern";
version = "2.12.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-yMIvFiliEHrbZMqvX3ZAROWcqii5VmB54QEYHGRJocA=";
};
preBuild = ''
cp requirements.{in,txt}
'';
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [
pyyaml
docker
dockerfile-parse
license-expression
requests
stevedore
debian-inspector
regex
gitpython
prettytable
idna
packageurl-python
];
# No tests
doCheck = false;
pythonImportsCheck = [ "tern" ];
meta = with lib; {
description = "Software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles";
mainProgram = "tern";
homepage = "https://github.com/tern-tools/tern";
changelog = "https://github.com/tern-tools/tern/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = [ ];
};
}