blob: 19fd8a2aac01b308f0097dd4d4a3138d38c2c9b0 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
gevent,
python,
setuptools,
}:
buildPythonPackage rec {
pname = "yappi";
version = "1.7.3";
pyproject = true;
src = fetchFromGitHub {
owner = "sumerc";
repo = "yappi";
tag = version;
hash = "sha256-YbWPx5Wf1s1UCCiDCInw66VnZ005LfON81MN3phT+fU=";
};
patches = [ ./tests.patch ];
build-system = [ setuptools ];
nativeCheckInputs = [ gevent ];
checkPhase = ''
runHook preCheck
${python.interpreter} run_tests.py
runHook postCheck
'';
pythonImportsCheck = [ "yappi" ];
meta = {
description = "Python profiler that supports multithreading and measuring CPU time";
mainProgram = "yappi";
homepage = "https://github.com/sumerc/yappi";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|