libbytesize: fix cross compilation

libbytesize python module imports a shared object, which only works so
long as it's imported on the same architecture it was built for.
hence, do the import check as part of `installCheckPhase` where it can
be enabled more selectively.
This commit is contained in:
Colin
2024-11-09 21:05:29 +00:00
parent 52c3ce5d48
commit d2bde715f2

View File

@@ -42,6 +42,9 @@ stdenv.mkDerivation (finalAttrs: {
libxslt
pkg-config
python3Packages.python
];
nativeInstallCheckInputs = [
python3Packages.pythonImportsCheckHook
];
@@ -51,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
pcre2
];
doInstallCheck = true;
strictDeps = true;
postInstall = ''