1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 16:39:31 +03:00
nixpkgs/pkgs/development/python-modules/yappi/default.nix

43 lines
793 B
Nix
Raw Normal View History

2021-11-09 17:43:46 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, gevent
, isPy27
, python
}:
2019-07-14 00:08:18 +00:00
buildPythonPackage rec {
pname = "yappi";
2021-11-09 17:43:46 +01:00
version = "1.3.2";
2020-08-15 15:54:31 -07:00
disabled = isPy27; # invalid syntax
2019-07-14 00:08:18 +00:00
2020-10-18 23:25:03 +02:00
src = fetchFromGitHub {
owner = "sumerc";
repo = pname;
2021-11-09 17:43:46 +01:00
rev = "8bf7a650066f104f59c3cae4a189ec15e7d51c8c";
sha256 = "1q8lr9n0lny2g3mssy3mksbl9m4k1kqn1a4yv1hfqsahxdvpw2dp";
2019-07-14 00:08:18 +00:00
};
patches = [ ./tests.patch ];
2021-11-09 17:43:46 +01:00
checkInputs = [
gevent
];
2020-10-18 23:25:03 +02:00
checkPhase = ''
${python.interpreter} run_tests.py
'';
2019-07-14 00:08:18 +00:00
2021-11-09 17:43:46 +01:00
pythonImportsCheck = [
"yappi"
];
2019-07-14 00:08:18 +00:00
meta = with lib; {
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 ];
};
}