blob: 5c41e88455418cfa07f0cbdd78f303c0f03937b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# tests
objgraph,
psutil,
python,
unittestCheckHook,
}:
let
greenlet = buildPythonPackage rec {
pname = "greenlet";
version = "3.0.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-QzdEQjUyWVVM4zWZ2otpLVqpb4l21WfUut8mM3H75JE=";
};
nativeBuildInputs = [ setuptools ];
# tests in passthru, infinite recursion via objgraph/graphviz
doCheck = false;
nativeCheckInputs = [
objgraph
psutil
unittestCheckHook
];
preCheck = ''
pushd ${placeholder "out"}/${python.sitePackages}
'';
unittestFlagsArray = [ "greenlet.tests" ];
postCheck = ''
popd
'';
passthru.tests.pytest = greenlet.overridePythonAttrs (_: {
doCheck = true;
});
meta = with lib; {
changelog = "https://github.com/python-greenlet/greenlet/blob/${version}/CHANGES.rst";
homepage = "https://github.com/python-greenlet/greenlet";
description = "Module for lightweight in-process concurrent programming";
license = with licenses; [
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
mit
];
};
};
in
greenlet
|