mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
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>
46 lines
1.1 KiB
Nix
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.
|
|
'';
|
|
};
|
|
}
|