From b573c0d93b01edcbd12784f8484bf06523d79ab3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 13:03:40 +0200 Subject: [PATCH] python310Packages.container-inspector: init at 31.0.0 --- .../container-inspector/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/container-inspector/default.nix diff --git a/pkgs/development/python-modules/container-inspector/default.nix b/pkgs/development/python-modules/container-inspector/default.nix new file mode 100644 index 000000000000..d8acd1160a80 --- /dev/null +++ b/pkgs/development/python-modules/container-inspector/default.nix @@ -0,0 +1,54 @@ +{ lib +, attrs +, buildPythonPackage +, click +, commoncode +, dockerfile-parse +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "container-inspector"; + version = "31.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "nexB"; + repo = pname; + rev = "v${version}"; + hash = "sha256-YwtyNZsTMb8iFXo/rojvjkKUbMNRCXVamzFykpwYCOk="; + }; + + dontConfigure = true; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + attrs + click + dockerfile-parse + commoncode + ]; + + checkInputs = [ + 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"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3fd57e228deb..f3fb25249741 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1871,6 +1871,8 @@ in { consul = callPackage ../development/python-modules/consul { }; + container-inspector = callPackage ../development/python-modules/container-inspector { }; + contexter = callPackage ../development/python-modules/contexter { }; contextlib2 = callPackage ../development/python-modules/contextlib2 { };