nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 debian-inspector,
5 docker,
6 dockerfile-parse,
7 fetchPypi,
8 gitpython,
9 idna,
10 license-expression,
11 packageurl-python,
12 pbr,
13 prettytable,
14 pyyaml,
15 regex,
16 requests,
17 stevedore,
18}:
19
20buildPythonPackage rec {
21 pname = "tern";
22 version = "2.12.1";
23 format = "setuptools";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-yMIvFiliEHrbZMqvX3ZAROWcqii5VmB54QEYHGRJocA=";
28 };
29
30 preBuild = ''
31 cp requirements.{in,txt}
32 '';
33
34 nativeBuildInputs = [ pbr ];
35
36 propagatedBuildInputs = [
37 pyyaml
38 docker
39 dockerfile-parse
40 license-expression
41 requests
42 stevedore
43 debian-inspector
44 regex
45 gitpython
46 prettytable
47 idna
48 packageurl-python
49 ];
50
51 # No tests
52 doCheck = false;
53
54 pythonImportsCheck = [ "tern" ];
55
56 meta = {
57 description = "Software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles";
58 mainProgram = "tern";
59 homepage = "https://github.com/tern-tools/tern";
60 changelog = "https://github.com/tern-tools/tern/releases/tag/v${version}";
61 license = lib.licenses.bsd2;
62 maintainers = [ ];
63 };
64}