diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix new file mode 100644 index 000000000000..45425e1d1187 --- /dev/null +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, lib +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "pyinstrument"; + version = "4.1.1"; + + src = fetchFromGitHub { + owner = "joerick"; + repo = pname; + rev = "v${version}"; + hash = "sha256-4gM60UhzN+VnNMTHw6NSU7/LUPHaMgg105D+dO6SDfg="; + }; + + # Module import recursion + doCheck = false; + + pythonImportsCheck = [ + "pyinstrument" + ]; + + meta = with lib; { + description = "Call stack profiler for Python"; + homepage = "https://github.com/joerick/pyinstrument"; + license = licenses.bsd3; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75f382543e87..de1429748751 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7547,6 +7547,8 @@ in { pyinsteon = callPackage ../development/python-modules/pyinsteon { }; + pyinstrument = callPackage ../development/python-modules/pyinstrument { }; + pyintesishome = callPackage ../development/python-modules/pyintesishome { }; pyipma = callPackage ../development/python-modules/pyipma { };