1{ stdenv
2, lib
3, buildPythonPackage
4, fetchFromGitHub
5}:
6
7buildPythonPackage rec {
8 pname = "pyinstrument";
9 version = "4.1.1";
10
11 src = fetchFromGitHub {
12 owner = "joerick";
13 repo = pname;
14 rev = "v${version}";
15 hash = "sha256-4gM60UhzN+VnNMTHw6NSU7/LUPHaMgg105D+dO6SDfg=";
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}