1{ lib
2, attrs
3, buildPythonPackage
4, click
5, commoncode
6, dockerfile-parse
7, fetchFromGitHub
8, pytestCheckHook
9, pythonOlder
10, setuptools-scm
11}:
12
13buildPythonPackage rec {
14 pname = "container-inspector";
15 version = "32.0.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "nexB";
22 repo = pname;
23 rev = "refs/tags/v${version}";
24 hash = "sha256-J9glnfs6l36/IQoIvE8a+Cw4B8x/6r5UeAU8+T/OiQg=";
25 };
26
27 SETUPTOOLS_SCM_PRETEND_VERSION = version;
28
29 dontConfigure = true;
30
31 nativeBuildInputs = [
32 setuptools-scm
33 ];
34
35 propagatedBuildInputs = [
36 attrs
37 click
38 dockerfile-parse
39 commoncode
40 ];
41
42 checkInputs = [
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [
47 "container_inspector"
48 ];
49
50 meta = with lib; {
51 description = "Suite of analysis utilities and command line tools for container images";
52 homepage = "https://github.com/nexB/container-inspector";
53 license = with licenses; [ asl20 ];
54 maintainers = with maintainers; [ fab ];
55 };
56}