aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/opt-einsum/default.nix
blob: c28105d4e492448fff2f53a26515a9ca37814c5e (plain)
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
{ buildPythonPackage, fetchPypi, lib, numpy, pytest, pytestpep8, pytestcov }:
buildPythonPackage rec {
  version = "2.3.2";
  pname = "opt_einsum";

  src = fetchPypi {
    inherit version pname;
    sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k";
  };

  checkInputs = [
    pytest
    pytestpep8
    pytestcov
  ];

  checkPhase = ''
    pytest
  '';

  propagatedBuildInputs = [
    numpy
  ];

  meta = {
    description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
    homepage = http://optimized-einsum.readthedocs.io;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ teh ];
  };
}