python3Packages.firedrake: add updateScript

This commit is contained in:
qbisi
2025-09-04 15:02:08 +08:00
parent 1c28b77596
commit 9d949bfed9
@@ -43,9 +43,10 @@
mpiCheckPhaseHook,
writableTmpDirAsHomeHook,
# passthru.tests
# passthru
firedrake,
mpich,
nix-update-script,
}:
let
firedrakePackages = lib.makeScope newScope (self: {
@@ -173,6 +174,13 @@ buildPythonPackage rec {
# python updater script sets the wrong tag
skipBulkUpdate = true;
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"([0-9.]+)"
];
};
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
mpich = firedrake.override {
petsc4py = petsc4py.override { mpi = mpich; };