2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
debian-inspector,
|
|
|
|
docker,
|
|
|
|
dockerfile-parse,
|
|
|
|
fetchPypi,
|
|
|
|
gitpython,
|
|
|
|
idna,
|
|
|
|
license-expression,
|
|
|
|
packageurl-python,
|
|
|
|
pbr,
|
|
|
|
prettytable,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
regex,
|
|
|
|
requests,
|
|
|
|
stevedore,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tern";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.12.1";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-yMIvFiliEHrbZMqvX3ZAROWcqii5VmB54QEYHGRJocA=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp requirements.{in,txt}
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pbr ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
docker
|
|
|
|
dockerfile-parse
|
2022-08-12 12:06:08 +00:00
|
|
|
license-expression
|
2021-04-25 03:57:28 +00:00
|
|
|
requests
|
|
|
|
stevedore
|
2021-05-20 23:08:51 +00:00
|
|
|
debian-inspector
|
2021-04-25 03:57:28 +00:00
|
|
|
regex
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2021-04-25 03:57:28 +00:00
|
|
|
prettytable
|
|
|
|
idna
|
2021-12-06 16:07:01 +00:00
|
|
|
packageurl-python
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tern" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tern";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/tern-tools/tern";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/tern-tools/tern/releases/tag/v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.bsd2;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|