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