diff options
| author | Arnout Engelen <arnout@bzzt.net> | 2022-10-05 17:39:37 +0200 |
|---|---|---|
| committer | Arnout Engelen <arnout@bzzt.net> | 2022-10-17 09:12:58 +0200 |
| commit | 54bfd51169737bb43be7af2f217016153ca24908 (patch) | |
| tree | f2a69f1b488161584dea481109fc8134795bdb94 /pkgs/development/python-modules | |
| parent | f634d427b0224a5f531ea5aa10c3960ba6ec5f0f (diff) | |
cve: init at 1.0.0
A library and a command line interface for the CVE Services API
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/cvelib/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cvelib/default.nix b/pkgs/development/python-modules/cvelib/default.nix new file mode 100644 index 000000000000..fc81da016f66 --- /dev/null +++ b/pkgs/development/python-modules/cvelib/default.nix @@ -0,0 +1,32 @@ +{ buildPythonPackage +, fetchFromGitHub +, requests +, click +, lib +}: + +buildPythonPackage rec { + pname = "cvelib"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "RedHatProductSecurity"; + repo = "cvelib"; + rev = "tags/${version}"; + sha256 = "sha256-KUj9Cnvl7r8NMmZvVj5CB0uZvLNK5aHcLc+NzxFrv0I="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; + propagatedBuildInputs = [ requests click ]; + + pythonImportsCheck = [ + "cvelib" + ]; + + meta = with lib; { + description = "A library and a command line interface for the CVE Services API"; + homepage = "https://github.com/RedHatProductSecurity/cvelib"; + license = licenses.mit; + maintainers = with maintainers; [ raboof ]; + }; +} |
