aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/opt-einsum/default.nix
blob: 2ded1dfc1961040c10caf5ee2431d3ce740e4467 (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
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:

buildPythonPackage rec {
  version = "3.3.0";
  pname = "opt_einsum";

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

  propagatedBuildInputs = [ numpy ];

  checkInputs = [ pytest_4 ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
    homepage = "https://github.com/dgasmith/opt_einsum";
    license = licenses.mit;
    maintainers = with maintainers; [ teh ];
  };
}