nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 greenlet,
6 setuptools,
7 twisted,
8 zope-interface,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "python3-eventlib";
13 version = "0.3.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "AGProjects";
18 repo = "python3-eventlib";
19 tag = finalAttrs.version;
20 hash = "sha256-jN9nn+rI4TJLrEiEIoVxQ3XnXWSws1FenGUfG3doc94=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 greenlet
27 twisted
28 zope-interface
29 ];
30
31 pythonImportsCheck = [ "eventlib" ];
32
33 meta = {
34 description = "Networking library written in Python";
35 homepage = "https://github.com/AGProjects/python3-eventlib";
36 longDescription = ''
37 Eventlib is a networking library written in Python. It achieves high
38 scalability by using non-blocking I/O while at the same time retaining
39 high programmer usability by using coroutines to make the non-blocking io
40 operations appear blocking at the source code level.
41 '';
42 license = lib.licenses.lgpl21Plus;
43 maintainers = with lib.maintainers; [ chanley ];
44 };
45})