conduit: 0.9.5 -> 0.9.7 (#511998)

This commit is contained in:
kirillrdy
2026-06-03 23:17:42 +00:00
committed by GitHub
2 changed files with 44 additions and 20 deletions
+18 -7
View File
@@ -15,14 +15,14 @@
stdenv.mkDerivation (finalAttrs: {
pname = "conduit";
version = "0.9.5";
version = "0.9.7";
src = fetchFromGitHub {
owner = "LLNL";
repo = "conduit";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-mX7/5C4wd70Kx1rQyo2BcZMwDRqvxo4fBdz3pq7PuvM=";
hash = "sha256-DmnHGj6Q/i+wVNIbaTGrFX9f0Kry2X5bC7zahXv29I4=";
};
nativeBuildInputs = [
@@ -41,13 +41,24 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "ENABLE_MPI" mpiSupport)
];
installCheckPhase = ''
runHook preInstallCheck
installCheckPhase =
let
excludedTests = lib.optionals stdenv.hostPlatform.isDarwin [
# SIGTRAP***Exception
"t_conduit_fixed_size_vector"
];
make test
excludedTestsString = lib.optionalString (
excludedTests != [ ]
) "-E '^(${builtins.concatStringsSep "|" excludedTests})$'";
in
''
runHook preInstallCheck
runHook postInstallCheck
'';
ctest --output-on-failure ${excludedTestsString}
runHook postInstallCheck
'';
doInstallCheck = true;
passthru = {
@@ -3,9 +3,18 @@
stdenv,
pkgs,
buildPythonPackage,
setuptools,
numpy,
# build-system
cmake,
ninja,
pip,
setuptools,
# nativeBuildInputs
openmpi,
# dependencies
numpy,
mpiSupport ? false,
}:
@@ -17,32 +26,36 @@ buildPythonPackage {
pname
version
src
nativeBuildInputs
# nativeBuildInputs
buildInputs
;
pyproject = true;
__structuredAttrs = true;
# Needed for cmake to find openmpi
strictDeps = false;
postPatch = ''
substituteInPlace setup.py \
postPatch = (conduit.postPatch or "") + ''
substituteInPlace pyproject.toml \
--replace-fail \
"'-j2'" \
"f'-j{os.environ.get(\"NIX_BUILD_CORES\")}'"
"cmake<=3.30.0" \
"cmake"
'';
dontUseCmakeConfigure = true;
env.ENABLE_MPI = mpiSupport;
build-system = [
cmake
ninja
pip
setuptools
];
dontUseCmakeConfigure = true;
nativeBuildInputs = conduit.nativeBuildInputs ++ [
# openmpi needs to be in nativeBuildInputs, otherwise cmake can't find it
openmpi
];
dependencies = [
numpy
pip
];
pythonImportsCheck = [ "conduit" ];