evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cvelib / default.nix
blobb55279325b1762263304adeefa64b738b0398473
2   lib,
3   buildPythonPackage,
4   click,
5   cve,
6   fetchFromGitHub,
7   jsonschema,
8   pytestCheckHook,
9   pythonOlder,
10   requests,
11   setuptools,
12   testers,
15 buildPythonPackage rec {
16   pname = "cvelib";
17   version = "1.6.0";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "RedHatProductSecurity";
24     repo = "cvelib";
25     rev = "refs/tags/${version}";
26     hash = "sha256-yDsnw7jw1NDs3dy5RUY4a+dWZzORyFG9kpR4WaJNbEE=";
27   };
29   postPatch = ''
30     # collective.checkdocs is unmaintained for over 10 years
31     substituteInPlace pyproject.toml \
32       --replace-fail '"collective.checkdocs",' ""
33   '';
35   build-system = [ setuptools ];
37   dependencies = [
38     click
39     jsonschema
40     requests
41   ];
43   nativeCheckInputs = [ pytestCheckHook ];
45   pythonImportsCheck = [ "cvelib" ];
47   passthru.tests.version = testers.testVersion { package = cve; };
49   meta = with lib; {
50     description = "Library and a command line interface for the CVE Services API";
51     homepage = "https://github.com/RedHatProductSecurity/cvelib";
52     changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${version}/CHANGELOG.md";
53     license = licenses.mit;
54     maintainers = with maintainers; [ raboof ];
55     mainProgram = "cve";
56   };