1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, python 6}: 7 8 9buildPythonPackage rec { 10 pname = "greenlet"; 11 version = "1.1.2"; 12 disabled = isPyPy; # builtin for pypy 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a"; 17 }; 18 19 checkPhase = '' 20 runHook preCheck 21 ${python.interpreter} -m unittest discover -v greenlet.tests 22 runHook postCheck 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/python-greenlet/greenlet"; 27 description = "Module for lightweight in-process concurrent programming"; 28 license = with licenses; [ 29 psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory 30 mit 31 ]; 32 }; 33}