From 227d1d1e65cf0b8bd942e04f2f456b808e4755e0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Sep 2023 12:50:12 +0200 Subject: [PATCH] python311Packages.nats-py: 2.2.0 -> 2.3.1 Diff: https://github.com/nats-io/nats.py/compare/refs/tags/v2.2.0...v2.3.1 Changelog: https://github.com/nats-io/nats.py/releases/tag/v2.3.1 --- .../python-modules/nats-py/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/nats-py/default.nix b/pkgs/development/python-modules/nats-py/default.nix index 3f958d05cff9..889017f006d9 100644 --- a/pkgs/development/python-modules/nats-py/default.nix +++ b/pkgs/development/python-modules/nats-py/default.nix @@ -7,13 +7,14 @@ , nats-server , pytestCheckHook , pythonOlder +, setuptools , uvloop }: buildPythonPackage rec { pname = "nats-py"; - version = "2.2.0"; - format = "setuptools"; + version = "2.3.1"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -21,9 +22,18 @@ buildPythonPackage rec { owner = "nats-io"; repo = "nats.py"; rev = "refs/tags/v${version}"; - hash = "sha256-w+YySX9RNXUttt7iLg/Efh8bNzmhIQTKMXcoPO1k4lI="; + hash = "sha256-vcTkQeaWBsPlPCp53VqI3inH0PkdxkKWDTW/vtrD/xw="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace '"--cov=nats", "--cov-report=html"' "" + ''; + + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ aiohttp ed25519 @@ -35,11 +45,6 @@ buildPythonPackage rec { uvloop ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=nats --cov-report html" "" - ''; - disabledTests = [ # AssertionError: assert 5 == 0 "test_pull_subscribe_limits"