From 78dd50f7a23db0843be9a615e02c3ac127ae10d4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 15:24:23 +0100 Subject: [PATCH] python313Packages.curio: 1.6 -> 1.6-unstable-2024-04-11 --- .../python-modules/curio/default.nix | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/curio/default.nix b/pkgs/development/python-modules/curio/default.nix index 434af5cb974a..dbdc54f01b5d 100644 --- a/pkgs/development/python-modules/curio/default.nix +++ b/pkgs/development/python-modules/curio/default.nix @@ -1,33 +1,27 @@ { lib, buildPythonPackage, - fetchPypi, - fetchpatch, - isPy3k, + fetchFromGitHub, + setuptools, pytestCheckHook, sphinx, stdenv, + unstableGitUpdater, }: buildPythonPackage rec { pname = "curio"; - version = "1.6"; - format = "setuptools"; - disabled = !isPy3k; + version = "1.6-unstable-2024-04-11"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-VipYbbICFrp9K+gmPeuesHnlYEj5uJBtEdX0WqgcUkc="; + src = fetchFromGitHub { + owner = "dabeaz"; + repo = "curio"; + rev = "148454621f9bd8dd843f591e87715415431f6979"; + hash = "sha256-WLu7XF5wiVzBRQH1KRdAbhluTvGE7VvnRQUS0c3SUDk="; }; - patches = [ - (fetchpatch { - # Add support for Python 3.12 - # https://github.com/dabeaz/curio/pull/363 - url = "https://github.com/dabeaz/curio/commit/a5590bb04de3f1f201fd1fd0ce9cfe5825db80ac.patch"; - hash = "sha256-dwatxLOPAWLQSyNqJvkx6Cbl327tX9OpZXM5aaDX58I="; - }) - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook @@ -53,6 +47,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "curio" ]; + # curio does not package new releaseas any more + passthru.updateScript = unstableGitUpdater { }; + meta = with lib; { description = "Library for performing concurrent I/O with coroutines in Python"; homepage = "https://github.com/dabeaz/curio";