From e8638ad0b5c1ec70e110141ceec8c968e123babe Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Jul 2026 12:29:39 +0000 Subject: [PATCH] python3Packages.nvchecker: 2.20 -> 2.21 Co-authored-by: Michael Daniels --- .../python-modules/nvchecker/default.nix | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/nvchecker/default.nix b/pkgs/development/python-modules/nvchecker/default.nix index 77f0fbf89911..1317b88aa8c0 100644 --- a/pkgs/development/python-modules/nvchecker/default.nix +++ b/pkgs/development/python-modules/nvchecker/default.nix @@ -2,7 +2,9 @@ lib, awesomeversion, buildPythonPackage, + cacert, docutils, + dulwich, fetchFromGitHub, flaky, installShellFiles, @@ -12,6 +14,7 @@ packaging, platformdirs, pycurl, + pygit2, pytest-asyncio, pytestCheckHook, pytest-httpbin, @@ -22,16 +25,16 @@ zstandard, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "nvchecker"; - version = "2.20"; + version = "2.21"; pyproject = true; src = fetchFromGitHub { owner = "lilydjwg"; repo = "nvchecker"; - tag = "v${version}"; - hash = "sha256-udwflm3C7C6Q7rSA0x0+8uf1F5quy2okf2IyZqKtA3E="; + tag = "v${finalAttrs.version}"; + hash = "sha256-XQrroiuDM9ISmfQLUbYIAzBOSYtO6q1MXqMfC3X8BUI="; }; __darwinAllowLocalNetworking = true; @@ -57,6 +60,12 @@ buildPythonPackage rec { htmlparser = [ lxml ]; rpmrepo = [ lxml ] ++ lib.optionals (pythonOlder "3.14") [ zstandard ]; jq = [ jq ]; + git_pygit2 = [ pygit2 ]; + git_dulwich = [ dulwich ]; + }; + + env = lib.optionalAttrs finalAttrs.doInstallCheck { + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; }; nativeCheckInputs = [ @@ -64,7 +73,8 @@ buildPythonPackage rec { pytest-asyncio pytest-httpbin pytestCheckHook - ]; + ] + ++ builtins.concatLists (builtins.attrValues finalAttrs.passthru.optional-dependencies); postBuild = '' patchShebangs docs/myrst2man.py @@ -84,8 +94,8 @@ buildPythonPackage rec { meta = { description = "New version checker for software"; homepage = "https://github.com/lilydjwg/nvchecker"; - changelog = "https://github.com/lilydjwg/nvchecker/releases/tag/${src.tag}"; + changelog = "https://github.com/lilydjwg/nvchecker/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mdaniels5757 ]; }; -} +})