2495e3f88b
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
62 lines
1 KiB
Nix
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.9.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9cb509dba91718feecefd302388a89d4782454f6613e8f931ec8de87a6594de0";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|