Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / securityreporter / default.nix
blobdf2f60a22cff47211ce54e112aa387f26fd18210
1 { lib
2 , buildPythonPackage
3 , docker
4 , fetchFromGitHub
5 , poetry-core
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , responses
12 buildPythonPackage rec {
13   pname = "securityreporter";
14   version = "1.0.2";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "dongit-org";
21     repo = "python-reporter";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-mBZVsoDnDRYHdcFzi4kuwmAJDRdpysUbNRcDzIhYRGY=";
24   };
26   build-system = [
27     poetry-core
28   ];
30   dependencies = [
31     requests
32   ];
34   nativeCheckInputs = [
35     docker
36     pytestCheckHook
37     responses
38   ];
40   pythonImportsCheck = [
41     "reporter"
42   ];
44   disabledTestPaths = [
45     # Test require a running Docker instance
46     "tests/functional/"
47   ];
49   meta = with lib; {
50     description = "A Python wrapper for the Reporter API";
51     homepage = "https://github.com/dongit-org/python-reporter";
52     changelog = "https://github.com/dongit-org/python-reporter/releases/tag/v${version}";
53     license = licenses.mit;
54     maintainers = with maintainers; [ fab ];
55   };