python312Packages.securityreporter: init at 1.0.2

A Python wrapper for the Reporter API

https://github.com/dongit-org/python-reporter
This commit is contained in:
Fabian Affolter 2024-03-30 09:39:40 +01:00
parent 3c9e0924c4
commit db22b5d2b8
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, docker
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
, responses
}:
buildPythonPackage rec {
pname = "securityreporter";
version = "1.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dongit-org";
repo = "python-reporter";
rev = "refs/tags/v${version}";
hash = "sha256-mBZVsoDnDRYHdcFzi4kuwmAJDRdpysUbNRcDzIhYRGY=";
};
build-system = [
poetry-core
];
dependencies = [
requests
];
nativeCheckInputs = [
docker
pytestCheckHook
responses
];
pythonImportsCheck = [
"reporter"
];
disabledTestPaths = [
# Test require a running Docker instance
"tests/functional/"
];
meta = with lib; {
description = "A Python wrapper for the Reporter API";
homepage = "https://github.com/dongit-org/python-reporter";
changelog = "https://github.com/dongit-org/python-reporter/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -13460,6 +13460,8 @@ self: super: with self; {
securetar = callPackage ../development/python-modules/securetar { };
securityreporter = callPackage ../development/python-modules/securityreporter { };
sectools = callPackage ../development/python-modules/sectools { };
seedir = callPackage ../development/python-modules/seedir { };