14 buildPythonPackage rec {
19 disabled = pythonOlder "3.9";
22 inherit pname version;
23 hash = "sha256-9EnZNCJOUDQB7nLNLuzhop2JO3q+NfYqRNUrqDEZjvo=";
26 nativeBuildInputs = [ setuptools-scm ];
28 propagatedBuildInputs = [
38 # The `pyamg` directory in PWD doesn't have the compiled Cython modules in it, but has higher import priority compared to the properly built and installed `pyamg`.
39 # It's easier to just remove the package directory in PWD.
41 ${python.interpreter} -c "import pyamg; pyamg.test()"
46 pythonImportsCheck = [
48 "pyamg.amg_core.evolution_strength"
52 description = "Algebraic Multigrid Solvers in Python";
53 homepage = "https://github.com/pyamg/pyamg";
54 changelog = "https://github.com/pyamg/pyamg/blob/v${version}/changelog.md";
55 license = licenses.mit;