anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / snakeviz / default.nix
blobc2fd38466ff64bda0e4bd13e3699a64f03a14531
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   ipython,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   setuptools,
10   tornado,
13 buildPythonPackage rec {
14   pname = "snakeviz";
15   version = "2.2.0";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "jiffyclub";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-tW1zUfCgOGQ8TjrKo2lBzGb0MSe25dP0/P9Q6x3736E=";
25   };
27   nativeBuildInputs = [ setuptools ];
29   propagatedBuildInputs = [ tornado ];
31   __darwinAllowLocalNetworking = true;
33   nativeCheckInputs = [
34     ipython
35     pytestCheckHook
36     requests
37   ];
39   pythonImportsCheck = [ "snakeviz" ];
41   preCheck = ''
42     export PATH="$PATH:$out/bin";
43   '';
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   };