1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 click,
6 commoncode,
7 dockerfile-parse,
8 fetchFromGitHub,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools-scm,
12}:
13
14buildPythonPackage rec {
15 pname = "container-inspector";
16 version = "33.0.1";
17 pyproject = true;
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "nexB";
23 repo = "container-inspector";
24 tag = "v${version}";
25 hash = "sha256-bXJ4UIDVhiU0DurEeRiyLlSUrNRgwoMqAxXxGb/CcJs=";
26 };
27
28 dontConfigure = true;
29
30 build-system = [ setuptools-scm ];
31
32 propagatedBuildInputs = [
33 attrs
34 click
35 dockerfile-parse
36 commoncode
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "container_inspector" ];
42
43 meta = with lib; {
44 description = "Suite of analysis utilities and command line tools for container images";
45 homepage = "https://github.com/nexB/container-inspector";
46 changelog = "https://github.com/nexB/container-inspector/releases/tag/v${version}";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ fab ];
49 };
50}