From b7a969f2531cdfbc3008c499be2ac757c1dafdf3 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 18 Apr 2024 04:20:00 +0000 Subject: [PATCH] nvchecker: 2.13.1 -> 2.14 Diff: https://github.com/lilydjwg/nvchecker/compare/v2.13.1...v2.14 Changelog: https://github.com/lilydjwg/nvchecker/releases/tag/v2.14 --- .../development/python-modules/nvchecker/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/nvchecker/default.nix b/pkgs/development/python-modules/nvchecker/default.nix index 96288f52e493..87f2fcfb43fb 100644 --- a/pkgs/development/python-modules/nvchecker/default.nix +++ b/pkgs/development/python-modules/nvchecker/default.nix @@ -21,18 +21,24 @@ buildPythonPackage rec { pname = "nvchecker"; - version = "2.13.1"; + version = "2.14"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "lilydjwg"; - repo = pname; + repo = "nvchecker"; rev = "v${version}"; - hash = "sha256-q+az9oaxxIOv/vLFpkT3cF5GDJsa0Cid4oPWEKg5s7M="; + hash = "sha256-QqfF8PGY8sULv1x0blu21ucWxqhOpQ7jyLuRCzDIpco="; }; + postPatch = '' + # Fix try/except syntax. Remove with the next release + substituteInPlace tests/test_jq.py \ + --replace-warn "except jq" "except ImportError" + ''; + nativeBuildInputs = [ setuptools docutils