From 0b8ac7d2b31c339d8327a51aa16031b1a70179f7 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 8 Dec 2022 09:14:22 +0100 Subject: [PATCH] pythonPackages.cvelib: add version test --- pkgs/development/python-modules/cvelib/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/cvelib/default.nix b/pkgs/development/python-modules/cvelib/default.nix index 49b5c759069..a1fc547ce76 100644 --- a/pkgs/development/python-modules/cvelib/default.nix +++ b/pkgs/development/python-modules/cvelib/default.nix @@ -6,6 +6,8 @@ , pytestCheckHook , pythonOlder , requests +, testers +, cve }: buildPythonPackage rec { @@ -38,10 +40,13 @@ buildPythonPackage rec { "cvelib" ]; + passthru.tests.version = testers.testVersion { package = cve; }; + meta = with lib; { description = "Library and a command line interface for the CVE Services API"; homepage = "https://github.com/RedHatProductSecurity/cvelib"; license = licenses.mit; maintainers = with maintainers; [ raboof ]; + mainProgram = "cve"; }; }