From c7eb0179e32e2a416bac2ef3e59cb85b982d2584 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 24 Mar 2024 12:58:32 +0100 Subject: [PATCH] python312Packages.fastjsonschema: 2.18.1 -> 2.19.1 https://github.com/horejsek/python-fastjsonschema/blob/v2.19.1/CHANGELOG.txt --- .../python-modules/fastjsonschema/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/fastjsonschema/default.nix b/pkgs/development/python-modules/fastjsonschema/default.nix index c5381986d1c9..330bf096b2ce 100644 --- a/pkgs/development/python-modules/fastjsonschema/default.nix +++ b/pkgs/development/python-modules/fastjsonschema/default.nix @@ -2,13 +2,14 @@ , stdenv , buildPythonPackage , fetchFromGitHub +, fetchpatch2 , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "fastjsonschema"; - version = "2.18.1"; + version = "2.19.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,17 +19,21 @@ buildPythonPackage rec { repo = "python-fastjsonschema"; rev = "v${version}"; fetchSubmodules = true; - hash = "sha256-t6JnqQgsWAL8oL8+LO0xrXMYsZOlTF3DlXkRiqUzYtU="; + hash = "sha256-UxcxVB4ldnGAYJKWEccivon1CwZD588mNiVJOJPNeN8="; }; + patches = [ + (fetchpatch2 { + name = "fastjsonschema-pytest8-compat.patch"; + url = "https://github.com/horejsek/python-fastjsonschema/commit/efc04daf4124a598182dfcfd497615cd1e633d18.patch"; + hash = "sha256-G1/PIpdN+KFfRP9pUFf/ANXLq3mzrocEHyBNWQMVOZM="; + }) + ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::pytest.PytestRemovedIn8Warning" - ]; - dontUseSetuptoolsCheck = true; disabledTests = [