Unverified Commit 47e05d0c authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

Merge pull request #273143 from nbraud/pkgs/memtree

memtree: unstable-2023-11-04 → 2023-11-22
parents a8d3e143 4c3cb337
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -6,18 +6,19 @@

python3Packages.buildPythonApplication {
  pname = "memtree";
  version = "unstable-2023-11-04";
  version = "unstable-2023-11-22";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nbraud";
    repo = "memtree";
    rev = "093caeef26ee944b5bf4408710f63494e442b5ff";
    hash = "sha256-j4LqWy7DxeV7pjwnCfpkHwug4p48kux6BM6oDJmvuUo=";
    rev = "edc09d91dcd72f175d6adc1d08b261dd95cc4fbf";
    hash = "sha256-YLZm0wjkjaTw/lHY5k4cqPXCgINe+49SGPLZq+eRdI4=";
  };

  nativeBuildInputs = with python3Packages; [
    poetry-core
    pytestCheckHook
  ];

  propagatedBuildInputs = with python3Packages; [
@@ -29,12 +30,7 @@ python3Packages.buildPythonApplication {
    pytest
  ];

  checkPhase = ''
    runHook preCheck
    python -m pytest -v
    runHook postCheck
  '';

  pytestFlagsArray = [ "-v" ];
  pythonImportChecks = [ "memtree" ];

  passthru.updateScript = nix-update-script {
@@ -45,6 +41,7 @@ python3Packages.buildPythonApplication {
    description = "Render cgroups tree annotated by memory usage";
    homepage = "https://github.com/nbraud/memtree";
    maintainers = with maintainers; [ nicoo ];
    mainProgram = "memtree";
    platforms = platforms.linux;
  };
}