Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pygitguardian / default.nix
blob1325a31fe13391da90b6198be4617924c8980d87
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , marshmallow
5 , marshmallow-dataclass
6 , pytestCheckHook
7 , pythonOlder
8 , pythonRelaxDepsHook
9 , requests
10 , responses
11 , setuptools
12 , typing-extensions
13 , vcrpy
16 buildPythonPackage rec {
17   pname = "pygitguardian";
18   version = "1.14.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "GitGuardian";
25     repo = "py-gitguardian";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-Uw65+YOnln+IOyT+RgqMEWt5cOZsaeS8Nu8U6ooivWA=";
28   };
30   pythonRelaxDeps = [
31     "marshmallow-dataclass"
32   ];
34   nativeBuildInputs = [
35     pythonRelaxDepsHook
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     marshmallow
41     marshmallow-dataclass
42     requests
43     typing-extensions
44   ];
46   nativeCheckInputs = [
47     pytestCheckHook
48     vcrpy
49     responses
50   ];
52   pythonImportsCheck = [
53     "pygitguardian"
54   ];
56   disabledTests = [
57     # Tests require an API key
58     "test_bogus_rate_limit"
59     "test_compute_sca_files"
60     "test_content_scan_exceptions"
61     "test_content_scan"
62     "test_create_honeytoken"
63     "test_create_jwt"
64     "test_extra_headers"
65     "test_health_check"
66     "test_multi_content_exceptions"
67     "test_multi_content_scan"
68     "test_multiscan_parameters"
69     "test_quota_overview"
70     "test_rate_limit"
71     "test_sca_client_scan_diff"
72     "test_sca_scan_all_with_params"
73     "test_sca_scan_directory_invalid_tar"
74     "test_sca_scan_directory"
75     "test_versions_from_headers"
76   ];
78   meta = with lib; {
79     description = "Library to access the GitGuardian API";
80     homepage = "https://github.com/GitGuardian/py-gitguardian";
81     changelog = "https://github.com/GitGuardian/py-gitguardian/blob/v${version}/CHANGELOG.md";
82     license = licenses.mit;
83     maintainers = with maintainers; [ fab ];
84   };