Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 ipython, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10 tornado, 11}: 12 13buildPythonPackage rec { 14 pname = "snakeviz"; 15 version = "2.2.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "jiffyclub"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-tW1zUfCgOGQ8TjrKo2lBzGb0MSe25dP0/P9Q6x3736E="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ tornado ]; 30 31 __darwinAllowLocalNetworking = true; 32 33 nativeCheckInputs = [ 34 ipython 35 pytestCheckHook 36 requests 37 ]; 38 39 pythonImportsCheck = [ "snakeviz" ]; 40 41 preCheck = '' 42 export PATH="$PATH:$out/bin"; 43 ''; 44 45 meta = with lib; { 46 description = "Browser based viewer for profiling data"; 47 mainProgram = "snakeviz"; 48 homepage = "https://jiffyclub.github.io/snakeviz"; 49 changelog = "https://github.com/jiffyclub/snakeviz/blob/v${version}/CHANGES.rst"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ nixy ]; 52 }; 53}