Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 49 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchPypi, numpy, scipy, pytest, pybind11, setuptools-scm}:
buildPythonPackage rec { pname = "pyamg"; version = "5.0.0";
src = fetchPypi { inherit pname version; hash = "sha256-6rlnIo9hQ0LOI8e01rvKJa2LknpFy3Ym0e8XyfBioC4="; };
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ numpy scipy pytest pybind11 ];
# 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"; homepage = "https://github.com/pyamg/pyamg"; license = licenses.mit; maintainers = [ maintainers.costrouc ]; };}