mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
b2534aa0cb
debut was renamed to debian-inspector. I didn't realize at the time that these were two of the very same packages.
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyyaml
|
|
, docker
|
|
, dockerfile-parse
|
|
, requests
|
|
, stevedore
|
|
, pbr
|
|
, debian-inspector
|
|
, regex
|
|
, GitPython
|
|
, prettytable
|
|
, idna
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "tern";
|
|
version = "2.5.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "606c62944991b2cbcccf3f5353be693305d6d7d318c3865b9ecca49dbeab2727";
|
|
};
|
|
|
|
patches = [
|
|
# debut was renamed to debian-inspector
|
|
# https://github.com/tern-tools/tern/pull/962
|
|
# NOTE: Has to be in-tree because the upstream patch doesn't apply cleanly
|
|
# to the PyPi source.
|
|
./0001-Replace-debut-with-debian-inspector.patch
|
|
];
|
|
|
|
preBuild = ''
|
|
cp requirements.{in,txt}
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
docker
|
|
dockerfile-parse
|
|
requests
|
|
stevedore
|
|
debian-inspector
|
|
regex
|
|
GitPython
|
|
prettytable
|
|
idna
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
}
|