From a988dfce3255375118dac11375b6af003961c79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 16 Nov 2025 12:53:27 -0800 Subject: [PATCH] python3Packages.persist-queue: 1.0.0 -> 1.1.0 Diff: https://github.com/peter-wangxu/persist-queue/compare/v1.0.0...v1.1.0 Changelog: https://github.com/peter-wangxu/persist-queue/releases/tag/v1.1.0 --- .../python-modules/persist-queue/default.nix | 66 +++++++++++-------- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/persist-queue/default.nix b/pkgs/development/python-modules/persist-queue/default.nix index bbadd55d3afe..72c662c2680f 100644 --- a/pkgs/development/python-modules/persist-queue/default.nix +++ b/pkgs/development/python-modules/persist-queue/default.nix @@ -1,48 +1,58 @@ { lib, + aiofiles, + aiosqlite, buildPythonPackage, - fetchPypi, - pythonOlder, - nose2, - msgpack, cbor2, + dbutils, + fetchFromGitHub, + msgpack, + pymysql, + pytest-asyncio, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "persist-queue"; - version = "1.0.0"; - format = "setuptools"; + version = "1.1.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-P/t0aQLTAj/QnrRol2Cf3ubHexZB8Z4vyNmNdEvfyEU="; + src = fetchFromGitHub { + owner = "peter-wangxu"; + repo = "persist-queue"; + tag = "v${version}"; + hash = "sha256-8LtXTpwAk71sjxvZudwk+4P4ohlWC0zagr5F8PTkTwk="; }; - disabled = pythonOlder "3.6"; + build-system = [ setuptools ]; + + optional-dependencies = { + async = [ + aiofiles + aiosqlite + ]; + extra = [ + cbor2 + dbutils + msgpack + pymysql + ]; + }; nativeCheckInputs = [ - nose2 - msgpack - cbor2 - ]; - - checkPhase = '' - runHook preCheck - - # Don't run MySQL tests, as they require a MySQL server running - rm persistqueue/tests/test_mysqlqueue.py - - nose2 - - runHook postCheck - ''; + pytest-asyncio + pytestCheckHook + ] + ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "persistqueue" ]; - meta = with lib; { + meta = { + changelog = "https://github.com/peter-wangxu/persist-queue/releases/tag/${src.tag}"; description = "Thread-safe disk based persistent queue in Python"; homepage = "https://github.com/peter-wangxu/persist-queue"; - license = licenses.bsd3; - maintainers = with maintainers; [ huantian ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ huantian ]; }; }