Commit 1b46ab02 authored by nicoo's avatar nicoo
Browse files

memtree: Replace custom `checkPhase` with `pytestCheckHook`

parent 5d664972
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ python3Packages.buildPythonApplication {

  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 {