about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyamg/default.nix
blob: b299e44f3e347e3336326acdbe1d90c311456d73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, pytest
, pybind11
}:

buildPythonPackage rec {
  pname = "pyamg";
  version = "4.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "3ceb38ffd86e29774e759486f2961599c8ed847459c68727493cadeaf115a38a";
  };

  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 ];
  };
}