summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2022-10-05 17:39:37 +0200
committerArnout Engelen <arnout@bzzt.net>2022-10-17 09:12:58 +0200
commit54bfd51169737bb43be7af2f217016153ca24908 (patch)
treef2a69f1b488161584dea481109fc8134795bdb94 /pkgs/development/python-modules
parentf634d427b0224a5f531ea5aa10c3960ba6ec5f0f (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.nix32
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 ];
+ };
+}