From b662223102564762bf0f7b42e8abd496f90f5edf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Nov 2022 23:26:52 +0100 Subject: [PATCH] python310Packages.cvelib: 1.0.0 -> 1.1.0 https://github.com/RedHatProductSecurity/cvelib/releases/tag/1.1.0 - switch to pytestCheckHook --- .../python-modules/cvelib/default.nix | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/cvelib/default.nix b/pkgs/development/python-modules/cvelib/default.nix index fc81da016f66..49b5c7590691 100644 --- a/pkgs/development/python-modules/cvelib/default.nix +++ b/pkgs/development/python-modules/cvelib/default.nix @@ -1,30 +1,45 @@ -{ buildPythonPackage -, fetchFromGitHub -, requests +{ lib +, buildPythonPackage , click -, lib +, fetchFromGitHub +, jsonschema +, pytestCheckHook +, pythonOlder +, requests }: buildPythonPackage rec { pname = "cvelib"; - version = "1.0.0"; + version = "1.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "RedHatProductSecurity"; repo = "cvelib"; rev = "tags/${version}"; - sha256 = "sha256-KUj9Cnvl7r8NMmZvVj5CB0uZvLNK5aHcLc+NzxFrv0I="; + hash = "sha256-MZzCTUleEddIlZBRhxD8ZgaWAOFcpa5hvNuIjrBJRzk="; }; SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; - propagatedBuildInputs = [ requests click ]; + + propagatedBuildInputs = [ + click + jsonschema + requests + ]; + + checkInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "cvelib" ]; meta = with lib; { - description = "A library and a command line interface for the CVE Services API"; + 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 ];