Files
nixpkgs/pkgs/development/python-modules/python3-eventlib/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
isPy3k,
zope-interface,
twisted,
greenlet,
}:
buildPythonPackage rec {
pname = "python3-eventlib";
version = "0.3.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "AGProjects";
repo = "python3-eventlib";
rev = version;
hash = "sha256-LFW3rCGa7A8tk6SjgYgjkLQ+72GE2WN8wG+XkXYTAoQ=";
};
propagatedBuildInputs = [
zope-interface
twisted
greenlet
];
pythonImportsCheck = [ "eventlib" ];
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.
'';
};
}