5e2a688410
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, colorful
|
|
, tomlkit
|
|
, git
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pontos";
|
|
version = "21.10.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0dmszxwmkgvpl7w0g4qd3dp67bw2indvd2my6jjgfn0wgwyn46r1";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|