From 58a68455537e77f5fc7e014c26da2b6817f06d27 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 24 Jan 2026 11:21:32 +0100 Subject: [PATCH] python313Packages.python3-eventlib: modernize --- .../python3-eventlib/default.nix | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/python3-eventlib/default.nix b/pkgs/development/python-modules/python3-eventlib/default.nix index e3994ff3ac35..a2e63e597ffa 100644 --- a/pkgs/development/python-modules/python3-eventlib/default.nix +++ b/pkgs/development/python-modules/python3-eventlib/default.nix @@ -1,31 +1,31 @@ { lib, - fetchFromGitHub, buildPythonPackage, - isPy3k, - zope-interface, - twisted, + fetchFromGitHub, greenlet, + setuptools, + twisted, + zope-interface, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python3-eventlib"; version = "0.3.1"; - format = "setuptools"; - - disabled = !isPy3k; + pyproject = true; src = fetchFromGitHub { owner = "AGProjects"; repo = "python3-eventlib"; - rev = version; + tag = finalAttrs.version; hash = "sha256-jN9nn+rI4TJLrEiEIoVxQ3XnXWSws1FenGUfG3doc94="; }; - propagatedBuildInputs = [ - zope-interface - twisted + build-system = [ setuptools ]; + + dependencies = [ greenlet + twisted + zope-interface ]; pythonImportsCheck = [ "eventlib" ]; @@ -33,13 +33,13 @@ buildPythonPackage rec { meta = { description = "Networking library written in Python"; homepage = "https://github.com/AGProjects/python3-eventlib"; - license = lib.licenses.lgpl21Plus; - maintainers = with lib.maintainers; [ chanley ]; longDescription = '' Eventlib is a networking library written in Python. It achieves high scalability by using non-blocking I/O while at the same time retaining high programmer usability by using coroutines to make the non-blocking io operations appear blocking at the source code level. ''; + license = lib.licenses.lgpl21Plus; + maintainers = with lib.maintainers; [ chanley ]; }; -} +})