From af27e3c59b0e1e8a132fa3303734de32038d9d3f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Jun 2026 14:06:18 +0200 Subject: [PATCH] python3Packages.nats-py: 2.12.0 -> 2.15.0 Changelog: https://github.com/nats-io/nats.py/releases/tag/v2.15.0 --- .../python-modules/nats-py/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/nats-py/default.nix b/pkgs/development/python-modules/nats-py/default.nix index ca1a9e55fcfa..5e5840a067a8 100644 --- a/pkgs/development/python-modules/nats-py/default.nix +++ b/pkgs/development/python-modules/nats-py/default.nix @@ -3,30 +3,38 @@ stdenv, aiohttp, buildPythonPackage, - ed25519, fetchFromGitHub, nats-server, nkeys, + pynacl, + pytest-asyncio, pytestCheckHook, - setuptools, + uv-build, uvloop, }: buildPythonPackage rec { pname = "nats-py"; - version = "2.12.0"; + version = "2.15.0"; pyproject = true; src = fetchFromGitHub { owner = "nats-io"; repo = "nats.py"; tag = "v${version}"; - hash = "sha256-HQtoFyw3Gi/lIQFVrFvRtWWzHTY+TchZYKqTiHfUWFk="; + hash = "sha256-rs+C++g21dKZ6c7L5dJYqWSiv4J8qMGobW7R8icUfVw="; }; - build-system = [ setuptools ]; + sourceRoot = "${src.name}/nats"; - dependencies = [ ed25519 ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.9.28,<0.10.0" "uv_build" + ''; + + build-system = [ uv-build ]; + + dependencies = [ pynacl ]; optional-dependencies = { aiohttp = [ aiohttp ]; @@ -36,6 +44,7 @@ buildPythonPackage rec { nativeCheckInputs = [ nats-server + pytest-asyncio pytestCheckHook uvloop ]; @@ -53,9 +62,6 @@ buildPythonPackage rec { "test_subscribe_iterate_next_msg" "test_ordered_consumer_larger_streams" "test_object_file_basics" - # Should be safe to remove on next version upgrade (from 2.11.0) - # https://github.com/nats-io/nats.py/pull/728 - "test_object_list" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_subscribe_iterate_next_msg"