toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / me / memtree / package.nix
blob7a6ed7a323af0f1e1cd9f4012a8bb091b1b70308
2   lib,
3   fetchFromGitHub,
4   nix-update-script,
5   python3Packages,
6 }:
8 python3Packages.buildPythonApplication {
9   pname = "memtree";
10   version = "0-unstable-2024-01-04";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "nbraud";
15     repo = "memtree";
16     rev = "97615952eabdc5e8e1a4bd590dd1f4971f3c5a24";
17     hash = "sha256-Ifp8hwkuyBw57fGer3GbDiJaRjL4TD3hzj+ecGXWqI0=";
18   };
20   nativeBuildInputs = with python3Packages; [
21     poetry-core
22   ];
24   propagatedBuildInputs = with python3Packages; [
25     rich
26   ];
28   nativeCheckInputs = with python3Packages; [
29     hypothesis
30     pytestCheckHook
31   ];
33   pytestFlagsArray = [ "-v" ];
34   pythonImportsCheck = [ "memtree" ];
36   passthru.updateScript = nix-update-script {
37     extraArgs = [ "--version=branch" ];
38   };
40   meta = with lib; {
41     description = "Render cgroups tree annotated by memory usage";
42     homepage = "https://github.com/nbraud/memtree";
43     maintainers = with maintainers; [ nicoo ];
44     mainProgram = "memtree";
45     platforms = platforms.linux;
46   };