ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
59 lines
1 KiB
Nix
59 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, colorful
|
|
, tomlkit
|
|
, git
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pontos";
|
|
version = "21.11.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-uP4M1ShhKsvqnUixc3JUJVpNQOwYn8Gm2uWVcXhFKLg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorful
|
|
tomlkit
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Signing fails
|
|
"test_find_no_signing_key"
|
|
"test_find_signing_key"
|
|
"test_find_unreleased_information"
|
|
# CLI test fails
|
|
"test_missing_cmd"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pontos" ];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of Python utilities, tools, classes and functions";
|
|
homepage = "https://github.com/greenbone/pontos";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|