nixpkgs/pkgs/development/python-modules/yappi/default.nix

28 lines
736 B
Nix
Raw Normal View History

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