Merge pull request #161458 from Artturin/pyamgfix

This commit is contained in:
Artturi 2022-02-25 05:26:52 +02:00 committed by GitHub
commit aed1f2c3b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, scipy
, pytest
, pybind11
, setuptools-scm
}:
buildPythonPackage rec {
@ -16,6 +17,10 @@ buildPythonPackage rec {
sha256 = "48d9be622049d8363cda84125c45d18b89e0ab7d99be5a93c0246f375ebad344";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
numpy
scipy
@ -23,9 +28,17 @@ buildPythonPackage rec {
pybind11
];
preBuild = ''
export HOME=$(mktemp -d)
'';
# failed with "ModuleNotFoundError: No module named 'pyamg.amg_core.evolution_strength'"
doCheck = false;
# taken from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-pyamg#n27
# checkPhase = ''
# PYTHONPATH="$PWD/build/lib.linux-*:$PYTHONPATH" ${python3.interpreter} -c "import pyamg; pyamg.test()"
# '';
pythonImportsCheck = [
"pyamg"
"pyamg.amg_core.evolution_strength"
];
meta = with lib; {
description = "Algebraic Multigrid Solvers in Python";