Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 806 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, gevent 5, python 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "yappi"; 11 version = "1.4.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "sumerc"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-AogBnqhLcwsyTHLP+Uxc+EOgYzhdwX5rbi9RMCuC2IU="; 21 }; 22 23 patches = [ 24 ./tests.patch 25 ]; 26 27 nativeCheckInputs = [ 28 gevent 29 ]; 30 31 checkPhase = '' 32 ${python.interpreter} run_tests.py 33 ''; 34 35 pythonImportsCheck = [ 36 "yappi" 37 ]; 38 39 meta = with lib; { 40 description = "Python profiler that supports multithreading and measuring CPU time"; 41 homepage = "https://github.com/sumerc/yappi"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ orivej ]; 44 }; 45}