2020-10-18 21:25:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, gevent, isPy27, python }:
|
2019-07-14 00:08:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yappi";
|
2020-10-18 21:25:03 +00:00
|
|
|
version = "1.3.0";
|
2020-08-15 22:54:31 +00:00
|
|
|
disabled = isPy27; # invalid syntax
|
2019-07-14 00:08:18 +00:00
|
|
|
|
2020-10-18 21:25:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sumerc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "30f94024a0e2e4fa21c220de6a0dc97b4cb2c319";
|
|
|
|
sha256 = "1kvwl3y3c2hivf9y2x1q1s8a2y724iwqd1krq6ryvsbg3inyh8qw";
|
2019-07-14 00:08:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./tests.patch ];
|
2020-10-18 21:25:03 +00:00
|
|
|
checkInputs = [ gevent ];
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} run_tests.py
|
|
|
|
'';
|
2019-07-14 00:08:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sumerc/yappi";
|
2019-07-14 00:08:18 +00:00
|
|
|
description = "Python profiler that supports multithreading and measuring CPU time";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|