Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyinstrument / default.nix
blob1646fcd1d115a65c51d5cd1db5497701e5e3b407
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pythonOlder
6 , setuptools
7 , wheel
8 }:
10 buildPythonPackage rec {
11   pname = "pyinstrument";
12   version = "4.6.0";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "joerick";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-NSE2mZPbKmvlQbBPx0MoqYfAOjmsf9CllX7dxygZfc4=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     wheel
27   ];
29   # Module import recursion
30   doCheck = false;
32   pythonImportsCheck = [
33     "pyinstrument"
34   ];
36   meta = with lib; {
37     description = "Call stack profiler for Python";
38     mainProgram = "pyinstrument";
39     homepage = "https://github.com/joerick/pyinstrument";
40     changelog = "https://github.com/joerick/pyinstrument/releases/tag/v${version}";
41     license = licenses.bsd3;
42     maintainers = with maintainers; [ onny ];
43   };