2024-01-13 08:15:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, zope-interface, twisted, greenlet }:
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python3-eventlib";
|
|
|
|
version = "0.3.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AGProjects";
|
|
|
|
repo = "python3-eventlib";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-LFW3rCGa7A8tk6SjgYgjkLQ+72GE2WN8wG+XkXYTAoQ=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = [ zope-interface twisted greenlet ];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "eventlib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A networking library written in Python";
|
|
|
|
homepage = "https://github.com/AGProjects/python3-eventlib";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with 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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|