2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyyaml
|
|
|
|
, docker
|
|
|
|
, dockerfile-parse
|
|
|
|
, requests
|
|
|
|
, stevedore
|
|
|
|
, pbr
|
2021-05-20 23:08:51 +00:00
|
|
|
, debian-inspector
|
2021-04-25 03:57:28 +00:00
|
|
|
, regex
|
|
|
|
, GitPython
|
|
|
|
, prettytable
|
|
|
|
, idna
|
2021-12-06 16:07:01 +00:00
|
|
|
, packageurl-python
|
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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.8.0";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "dd7d8ad929ffe951b1f7f86310b9d5ba749b4306132c3611ff1d5a2c4d79d2bd";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp requirements.{in,txt}
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
docker
|
|
|
|
dockerfile-parse
|
|
|
|
requests
|
|
|
|
stevedore
|
2021-05-20 23:08:51 +00:00
|
|
|
debian-inspector
|
2021-04-25 03:57:28 +00:00
|
|
|
regex
|
|
|
|
GitPython
|
|
|
|
prettytable
|
|
|
|
idna
|
2021-12-06 16:07:01 +00:00
|
|
|
packageurl-python
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|