From 0ea2bc77fd43d06da284dd802bb30603a0bf91b6 Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Fri, 22 May 2026 11:10:24 +0200 Subject: [PATCH 1/2] python3Packages.jsonschema-rs: 0.39.0 -> 0.46.5 --- .../python-modules/jsonschema-rs/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jsonschema-rs/default.nix b/pkgs/development/python-modules/jsonschema-rs/default.nix index 26103de5e110..77e607deaa47 100644 --- a/pkgs/development/python-modules/jsonschema-rs/default.nix +++ b/pkgs/development/python-modules/jsonschema-rs/default.nix @@ -1,5 +1,6 @@ { buildPythonPackage, + cacert, fetchPypi, hypothesis, lib, @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "jsonschema-rs"; - version = "0.39.0"; + version = "0.46.5"; pyproject = true; @@ -18,12 +19,12 @@ buildPythonPackage rec { src = fetchPypi { inherit version; pname = "jsonschema_rs"; - hash = "sha256-K+7QayZF5O6cO6fl23CnYCi6jJl4plSwdl5nji1sbfM="; + hash = "sha256-hX434HWi2fbyPepYpVmlW2Y9OHmiUhcABLVpBz2rHvM="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-2YNunqzejzDCj7mv9S8g/kY+t39YtQQ2jMeeTwc+NCs="; + hash = "sha256-HnrbyfuKIaYKs3ux8Du/PabPNpNu1v37Qm/5gJM6arw="; }; nativeBuildInputs = with rustPlatform; [ @@ -36,6 +37,19 @@ buildPythonPackage rec { pytestCheckHook ]; + preCheck = '' + # reqwest fails to build its HTTP client on Linux without a CA bundle + # ("No CA certificates were loaded from the system"). + export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt" + ''; + + # Need the official JSON Schema Test Suite, which is fetched as a git + # submodule and not bundled in the sdist. + disabledTestPaths = [ + "crates/jsonschema-py/tests-py/test_annotation_suite.py" + "crates/jsonschema-py/tests-py/test_suite.py" + ]; + pythonImportsCheck = [ "jsonschema_rs" ]; passthru.updateScript = nix-update-script { }; From a56e5e28a549a7d217ae3901a4cecfc2813d0f20 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Fri, 22 May 2026 23:04:07 -0400 Subject: [PATCH 2/2] python3Packages.jsonschema-rs: set __darwinAllowLocalNetworking --- pkgs/development/python-modules/jsonschema-rs/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/jsonschema-rs/default.nix b/pkgs/development/python-modules/jsonschema-rs/default.nix index 77e607deaa47..4be27d746133 100644 --- a/pkgs/development/python-modules/jsonschema-rs/default.nix +++ b/pkgs/development/python-modules/jsonschema-rs/default.nix @@ -52,6 +52,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "jsonschema_rs" ]; + __darwinAllowLocalNetworking = true; + passthru.updateScript = nix-update-script { }; meta = {