python3Packages.nats-py: 2.12.0 -> 2.15.0

Changelog: https://github.com/nats-io/nats.py/releases/tag/v2.15.0
This commit is contained in:
Fabian Affolter
2026-06-25 14:29:13 +02:00
parent 2f0873062c
commit af27e3c59b
@@ -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"