pkgs/assorted: fix pythonImportsCheckHook to be in nativeCheckInputs so it doesnt run on cross

This commit is contained in:
2024-11-13 13:47:52 +00:00
parent 7b88c9c644
commit 9de483a706
2 changed files with 14 additions and 5 deletions

View File

@@ -25,9 +25,7 @@
python3.pkgs.hatchling
python3.pkgs.pypaBuildHook
python3.pkgs.pypaInstallHook
python3.pkgs.pythonImportsCheckHook
python3.pkgs.wrapPython
python3.pkgs.pytestCheckHook
];
propagatedBuildInputs = [
@@ -37,6 +35,11 @@
python3.pkgs.rich
];
nativeCheckInputs = [
python3.pkgs.pythonImportsCheckHook
python3.pkgs.pytestCheckHook
];
pythonImportsCheck = [
"doc2dash"
"doc2dash.convert"
@@ -45,6 +48,8 @@
"doc2dash.parsers"
];
doCheck = true;
passthru.updateScript = gitUpdater { };
meta = with lib; {

View File

@@ -27,9 +27,6 @@
# python3.pkgs.pypaBuildHook
# python3.pkgs.pypaInstallHook
# python3.pkgs.pytestCheckHook
# python3.pkgs.pythonImportsCheckHook
python3.pkgs.wrapPython
];
@@ -37,10 +34,17 @@
# other python modules this depends on, if this package is supposed to be importable
];
nativeCheckInputs = [
# python3.pkgs.pytestCheckHook
# python3.pkgs.pythonImportsCheckHook #< or put in `nativeInstallCheckInputs` and set `doInstallCheck = true;`
];
pythonImportsCheck = [
# "mymodule"
];
doCheck = true;
meta = with lib; {
# homepage = "https://example.com";
# description = "python template project";