11 python3Packages.buildPythonApplication rec {
16 src = fetchFromGitHub {
20 hash = "sha256-SgkJm+vtIid8RR1Qy98PkpvIQX4LxyAPlS+4UlYlZws=";
23 build-system = with python3Packages; [
28 nativeBuildInputs = [ pkg-config ];
33 elfutils # for `-ldebuginfod`
34 ] ++ (with python3Packages; [ cython ]);
36 dependencies = with python3Packages; [
47 pytest-cov # fix Unknown pytest.mark.no_cover
48 pytest-textual-snapshot
51 ++ lib.optionals (pythonOlder "3.14") [ greenlet ];
53 pythonImportsCheck = [ "memray" ];
55 pytestFlagsArray = [ "tests" ];
59 "test_header_allocator"
60 "test_hybrid_stack_of_allocations_inside_ceval"
64 # Very time-consuming and some tests fails (performance-related?)
65 "tests/integration/test_main.py"
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;