pkgs/assorted: fix pythonImportsCheckHook to be in nativeCheckInputs so it doesnt run on cross
This commit is contained in:
@@ -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; {
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user