at 22.05-pre 793 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, gevent 5, isPy27 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "yappi"; 11 version = "1.3.2"; 12 13 disabled = isPy27; # invalid syntax 14 15 src = fetchFromGitHub { 16 owner = "sumerc"; 17 repo = pname; 18 rev = "8bf7a650066f104f59c3cae4a189ec15e7d51c8c"; 19 sha256 = "1q8lr9n0lny2g3mssy3mksbl9m4k1kqn1a4yv1hfqsahxdvpw2dp"; 20 }; 21 22 patches = [ ./tests.patch ]; 23 24 checkInputs = [ 25 gevent 26 ]; 27 28 checkPhase = '' 29 ${python.interpreter} run_tests.py 30 ''; 31 32 pythonImportsCheck = [ 33 "yappi" 34 ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/sumerc/yappi"; 38 description = "Python profiler that supports multithreading and measuring CPU time"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ orivej ]; 41 }; 42}