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 ]; }; -} +})