My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/yappi/default.nix

43 lines
793 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, gevent
, isPy27
, python
}:
buildPythonPackage rec {
pname = "yappi";
version = "1.3.2";
disabled = isPy27; # invalid syntax
src = fetchFromGitHub {
owner = "sumerc";
repo = pname;
rev = "8bf7a650066f104f59c3cae4a189ec15e7d51c8c";
sha256 = "1q8lr9n0lny2g3mssy3mksbl9m4k1kqn1a4yv1hfqsahxdvpw2dp";
};
patches = [ ./tests.patch ];
checkInputs = [
gevent
];
checkPhase = ''
${python.interpreter} run_tests.py
'';
pythonImportsCheck = [
"yappi"
];
meta = with lib; {
homepage = "https://github.com/sumerc/yappi";
description = "Python profiler that supports multithreading and measuring CPU time";
license = licenses.mit;
maintainers = with maintainers; [ orivej ];
};
}