diff --git a/pkgs/development/python-modules/snakeviz/default.nix b/pkgs/development/python-modules/snakeviz/default.nix new file mode 100644 index 000000000000..be6f86dae545 --- /dev/null +++ b/pkgs/development/python-modules/snakeviz/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, buildPythonPackage, tornado }: + +buildPythonPackage rec { + name = "snakeviz-${version}"; + version = "0.4.1"; + + src = fetchurl { + url = "mirror://pypi/s/snakeviz/${name}.tar.gz"; + sha256 = "18vsaw1wmf903fg21zkk6a9b49gj47g52jm5h52g4iygngjhpx79"; + }; + + # Upstream doesn't run tests from setup.py + doCheck = false; + propagatedBuildInputs = [ tornado ]; + + meta = with stdenv.lib; { + description = "Browser based viewer for profiling data"; + homepage = "https://jiffyclub.github.io/snakeviz"; + license = licenses.bsd3; + maintainers = with maintainers; [ nixy ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea43ff18c73d..1eea8420334f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -32088,6 +32088,8 @@ EOF treq = callPackage ../development/python-modules/treq { }; + snakeviz = callPackage ../development/python-modules/snakeviz { }; + }); in fix' (extends overrides packages)