blob: 430855c6f03e3f670c06177039d0c8653ef033dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
attrs,
buildPythonPackage,
click,
commoncode,
dockerfile-parse,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "container-inspector";
version = "33.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nexB";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-vtC42yq59vTE+4tF5CSm9zszj8goOP5i6+NMF2n4T1Q=";
};
dontConfigure = true;
postPatch = ''
# PEP440 support was removed in newer setuptools, https://github.com/nexB/container-inspector/pull/51
substituteInPlace setup.cfg \
--replace ">=3.7.*" ">=3.7"
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
attrs
click
dockerfile-parse
commoncode
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "container_inspector" ];
meta = with lib; {
description = "Suite of analysis utilities and command line tools for container images";
homepage = "https://github.com/nexB/container-inspector";
changelog = "https://github.com/nexB/container-inspector/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
|