2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication {
|
|
|
|
pname = "memtree";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2023-11-22";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nbraud";
|
|
|
|
repo = "memtree";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "edc09d91dcd72f175d6adc1d08b261dd95cc4fbf";
|
|
|
|
hash = "sha256-YLZm0wjkjaTw/lHY5k4cqPXCgINe+49SGPLZq+eRdI4=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
hypothesis
|
2024-01-02 11:29:13 +00:00
|
|
|
pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pytestFlagsArray = [ "-v" ];
|
|
|
|
pythonImportsCheck = [ "memtree" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "memtree";
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|