mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
59f47410c8
Diff: https://github.com/bloomberg/memray/compare/refs/tags/v1.8.0...v1.8.1 Changelog: https://github.com/bloomberg/memray/releases/tag/v1.8.1
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, libunwind
|
|
, lz4
|
|
, pkg-config
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "memray";
|
|
version = "1.8.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bloomberg";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ztoIUYuXfD8Mgj5vIsZnpuF8a5F9Za6xXHKW0Hscz20=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libunwind
|
|
lz4
|
|
] ++ (with python3.pkgs; [
|
|
cython
|
|
]);
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
jinja2
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
ipython
|
|
pytestCheckHook
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
greenlet
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"memray"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Import issue
|
|
"test_header_allocator"
|
|
"test_hybrid_stack_of_allocations_inside_ceval"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Very time-consuming and some tests fails (performance-related?)
|
|
"tests/integration/test_main.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Memory profiler for Python";
|
|
homepage = "https://bloomberg.github.io/memray/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
platforms = platforms.linux;
|
|
changelog = "https://github.com/bloomberg/memray/releases/tag/v${version}";
|
|
};
|
|
}
|