From aa8b44010845cecf81dd43f7a35b2179e7e57603 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Nov 2024 09:25:59 +0100 Subject: [PATCH] python312Packages.aiorwlock: 1.4.0 -> 1.5.0 Diff: https://github.com/aio-libs/aiorwlock/compare/refs/tags/v1.4.0...v1.5.0 Changelog: https://github.com/aio-libs/aiorwlock/releases/tag/v1.5.0 --- .../python-modules/aiorwlock/default.nix | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/aiorwlock/default.nix b/pkgs/development/python-modules/aiorwlock/default.nix index f5033ae3431e..91a492542718 100644 --- a/pkgs/development/python-modules/aiorwlock/default.nix +++ b/pkgs/development/python-modules/aiorwlock/default.nix @@ -1,24 +1,32 @@ { - buildPythonPackage, - fetchPypi, lib, + buildPythonPackage, + fetchFromGitHub, pytest-asyncio, pytestCheckHook, + poetry-core, + pythonOlder, }: buildPythonPackage rec { pname = "aiorwlock"; - version = "1.4.0"; - format = "setuptools"; + version = "1.5.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-TOpb7E6dA1M6JpGSmTlIIqFCKqUZvKndCReOxJD40cw="; + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = "aiorwlock"; + rev = "refs/tags/v${version}"; + hash = "sha256-QwjwuXjaxE1Y+Jzn8hJXY4wKltAT8mdOM7jJ9MF+DhA="; }; + build-system = [ poetry-core ]; + nativeCheckInputs = [ - pytestCheckHook pytest-asyncio + pytestCheckHook ]; pythonImportsCheck = [ "aiorwlock" ]; @@ -26,6 +34,7 @@ buildPythonPackage rec { meta = with lib; { description = "Read write lock for asyncio"; homepage = "https://github.com/aio-libs/aiorwlock"; + changelog = "https://github.com/aio-libs/aiorwlock/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ billhuang ]; };