eliot-tree: use addBinToPathHook

This commit is contained in:
Pol Dellaiera 2025-02-03 22:14:42 +01:00
parent 6a79b58e8d
commit df0dc1125d

View File

@ -2,6 +2,7 @@
lib, lib,
python3Packages, python3Packages,
fetchPypi, fetchPypi,
addBinToPathHook,
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
@ -32,15 +33,11 @@ python3Packages.buildPythonApplication rec {
]; ];
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python3Packages; [
addBinToPathHook
pytestCheckHook pytestCheckHook
testtools testtools
]; ];
# Tests run eliot-tree in out/bin.
preCheck = ''
export PATH=$out/bin:$PATH
'';
pythonImportsCheck = [ "eliottree" ]; pythonImportsCheck = [ "eliottree" ];
meta = { meta = {