frigate.web: fix build on Node 22.12, add missing meta (#375967)
[NixPkgs.git] / pkgs / by-name / me / memray / package.nix
blob332b1e268477ef01b4cde55badf21ca2506b8d5f
2   lib,
3   elfutils,
4   fetchFromGitHub,
5   libunwind,
6   lz4,
7   pkg-config,
8   python3Packages,
9 }:
11 python3Packages.buildPythonApplication rec {
12   pname = "memray";
13   version = "1.15.0";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "bloomberg";
18     repo = "memray";
19     tag = "v${version}";
20     hash = "sha256-SgkJm+vtIid8RR1Qy98PkpvIQX4LxyAPlS+4UlYlZws=";
21   };
23   build-system = with python3Packages; [
24     distutils
25     setuptools
26   ];
28   nativeBuildInputs = [ pkg-config ];
30   buildInputs = [
31     libunwind
32     lz4
33     elfutils # for `-ldebuginfod`
34   ] ++ (with python3Packages; [ cython ]);
36   dependencies = with python3Packages; [
37     pkgconfig
38     textual
39     jinja2
40     rich
41   ];
43   nativeCheckInputs =
44     with python3Packages;
45     [
46       ipython
47       pytest-cov # fix Unknown pytest.mark.no_cover
48       pytest-textual-snapshot
49       pytestCheckHook
50     ]
51     ++ lib.optionals (pythonOlder "3.14") [ greenlet ];
53   pythonImportsCheck = [ "memray" ];
55   pytestFlagsArray = [ "tests" ];
57   disabledTests = [
58     # Import issue
59     "test_header_allocator"
60     "test_hybrid_stack_of_allocations_inside_ceval"
61   ];
63   disabledTestPaths = [
64     # Very time-consuming and some tests fails (performance-related?)
65     "tests/integration/test_main.py"
66   ];
68   meta = with lib; {
69     description = "Memory profiler for Python";
70     homepage = "https://bloomberg.github.io/memray/";
71     changelog = "https://github.com/bloomberg/memray/releases/tag/v${version}";
72     license = licenses.asl20;
73     maintainers = with maintainers; [ fab ];
74     platforms = platforms.linux;
75   };