blob: 68e990456e75e429f76192f496568557c2356f9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, fetchFromGitHub
, nix-update-script
, python3Packages
}:
python3Packages.buildPythonApplication {
pname = "memtree";
version = "unstable-2023-11-22";
pyproject = true;
src = fetchFromGitHub {
owner = "nbraud";
repo = "memtree";
rev = "edc09d91dcd72f175d6adc1d08b261dd95cc4fbf";
hash = "sha256-YLZm0wjkjaTw/lHY5k4cqPXCgINe+49SGPLZq+eRdI4=";
};
nativeBuildInputs = with python3Packages; [
poetry-core
pytestCheckHook
];
propagatedBuildInputs = with python3Packages; [
rich
];
nativeCheckInputs = with python3Packages; [
hypothesis
pytest
];
pytestFlagsArray = [ "-v" ];
pythonImportChecks = [ "memtree" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = with lib; {
description = "Render cgroups tree annotated by memory usage";
homepage = "https://github.com/nbraud/memtree";
maintainers = with maintainers; [ nicoo ];
mainProgram = "memtree";
platforms = platforms.linux;
};
}
|