Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5}: 6 7buildPythonPackage rec { 8 pname = "pyinstrument"; 9 version = "4.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "joerick"; 13 repo = pname; 14 rev = "v${version}"; 15 hash = "sha256-0GbJkYBgSOIZrHSKM93SW93jXD+ieYN6A01kWoFbyvQ="; 16 }; 17 18 # Module import recursion 19 doCheck = false; 20 21 pythonImportsCheck = [ 22 "pyinstrument" 23 ]; 24 25 meta = with lib; { 26 description = "Call stack profiler for Python"; 27 homepage = "https://github.com/joerick/pyinstrument"; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ onny ]; 30 }; 31}