1{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, zope_interface, twisted, greenlet }: 2 3buildPythonPackage rec { 4 pname = "python3-eventlib"; 5 version = "0.3.0"; 6 7 disabled = !isPy3k; 8 9 src = fetchFromGitHub { 10 owner = "AGProjects"; 11 repo = "python3-eventlib"; 12 rev = version; 13 sha256 = "sha256-LFW3rCGa7A8tk6SjgYgjkLQ+72GE2WN8wG+XkXYTAoQ="; 14 }; 15 16 propagatedBuildInputs = [ zope_interface twisted greenlet ]; 17 18 dontUseSetuptoolsCheck = true; 19 20 pythonImportsCheck = [ "eventlib" ]; 21 22 meta = with lib; { 23 description = "A networking library written in Python"; 24 homepage = "https://github.com/AGProjects/python3-eventlib"; 25 license = licenses.lgpl21Plus; 26 maintainers = with maintainers; [ chanley ]; 27 longDescription = '' 28 Eventlib is a networking library written in Python. It achieves high 29 scalability by using non-blocking I/O while at the same time retaining 30 high programmer usability by using coroutines to make the non-blocking io 31 operations appear blocking at the source code level. 32 ''; 33 }; 34}