{ lib , buildPythonPackage , fetchPypi , pyyaml , docker , dockerfile-parse , requests , stevedore , pbr , debian-inspector , license-expression , regex , GitPython , prettytable , idna , packageurl-python }: buildPythonPackage rec { pname = "tern"; version = "2.10.1"; src = fetchPypi { inherit pname version; sha256 = "sha256-MMsq8/Obe3ogQSjiP8EebYseUJGcchMOczUrxE9jht4="; }; 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 = "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; }; }