depot/third_party/nixpkgs/pkgs/development/python-modules/pyamg/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

36 lines
617 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, pytest
, pybind11
}:
buildPythonPackage rec {
pname = "pyamg";
version = "4.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "48d9be622049d8363cda84125c45d18b89e0ab7d99be5a93c0246f375ebad344";
};
propagatedBuildInputs = [
numpy
scipy
pytest
pybind11
];
preBuild = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Algebraic Multigrid Solvers in Python";
homepage = "https://github.com/pyamg/pyamg";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}