My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/container-inspector/default.nix

56 lines
1.0 KiB

{ 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=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}