Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / snakeviz / default.nix
blob6e3cc6244799d14ace59566a4b88ca2170990683
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ipython
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , setuptools
9 , tornado
12 buildPythonPackage rec {
13   pname = "snakeviz";
14   version = "2.2.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "jiffyclub";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-tW1zUfCgOGQ8TjrKo2lBzGb0MSe25dP0/P9Q6x3736E=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     tornado
32   ];
34   __darwinAllowLocalNetworking = true;
36   nativeCheckInputs = [
37     ipython
38     pytestCheckHook
39     requests
40   ];
42   pythonImportsCheck = [
43     "snakeviz"
44   ];
46   preCheck = ''
47     export PATH="$PATH:$out/bin";
48   '';
50   meta = with lib; {
51     description = "Browser based viewer for profiling data";
52     mainProgram = "snakeviz";
53     homepage = "https://jiffyclub.github.io/snakeviz";
54     changelog = "https://github.com/jiffyclub/snakeviz/blob/v${version}/CHANGES.rst";
55     license = licenses.bsd3;
56     maintainers = with maintainers; [ nixy ];
57   };