From df0dc1125db3ffa75eefd99c5ff2618bc53b63f8 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:14:42 +0100 Subject: [PATCH] eliot-tree: use `addBinToPathHook` --- pkgs/by-name/el/eliot-tree/package.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/el/eliot-tree/package.nix b/pkgs/by-name/el/eliot-tree/package.nix index 3a8c809f933c..637f4af95be0 100644 --- a/pkgs/by-name/el/eliot-tree/package.nix +++ b/pkgs/by-name/el/eliot-tree/package.nix @@ -2,6 +2,7 @@ lib, python3Packages, fetchPypi, + addBinToPathHook, }: python3Packages.buildPythonApplication rec { @@ -32,15 +33,11 @@ python3Packages.buildPythonApplication rec { ]; nativeCheckInputs = with python3Packages; [ + addBinToPathHook pytestCheckHook testtools ]; - # Tests run eliot-tree in out/bin. - preCheck = '' - export PATH=$out/bin:$PATH - ''; - pythonImportsCheck = [ "eliottree" ]; meta = {