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