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