mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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:
parent
3c9e0924c4
commit
db22b5d2b8
56
pkgs/development/python-modules/securityreporter/default.nix
Normal file
56
pkgs/development/python-modules/securityreporter/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user