From 0d5e8b50eb9f5e64fc929c442ca659ee4eb8b0de Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:15:59 +0100 Subject: [PATCH] python3Packages.janus: 1.0.0 -> 2.0.0 --- pkgs/development/python-modules/janus/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/janus/default.nix b/pkgs/development/python-modules/janus/default.nix index 62041277358a..62366b1ddd78 100644 --- a/pkgs/development/python-modules/janus/default.nix +++ b/pkgs/development/python-modules/janus/default.nix @@ -5,17 +5,19 @@ pytestCheckHook, pythonOlder, pytest-asyncio, + pytest-benchmark, + pytest-cov-stub, typing-extensions, }: buildPythonPackage rec { pname = "janus"; - version = "1.0.0"; + version = "2.0.0"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "df976f2cdcfb034b147a2d51edfc34ff6bfb12d4e2643d3ad0e10de058cb1612"; + sha256 = "sha256-CXDzjg5yVABJbINKNopn7lUdw7WtCiV+Ey9bRvLnd3A="; }; disabled = pythonOlder "3.6"; @@ -24,11 +26,12 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio + pytest-benchmark + pytest-cov-stub pytestCheckHook ]; - # also fails upstream: https://github.com/aio-libs/janus/pull/258 - disabledTests = [ "test_format" ]; + pytestFlagsArray = [ "--benchmark-disable" ]; meta = with lib; { description = "Mixed sync-async queue";