1{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
2
3buildPythonPackage rec {
4 version = "3.3.0";
5 pname = "opt_einsum";
6
7 src = fetchPypi {
8 inherit version pname;
9 sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr";
10 };
11
12 propagatedBuildInputs = [ numpy ];
13
14 checkInputs = [ pytest_4 ];
15
16 checkPhase = ''
17 pytest
18 '';
19
20 meta = with lib; {
21 description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
22 homepage = "https://github.com/dgasmith/opt_einsum";
23 license = licenses.mit;
24 maintainers = with maintainers; [ teh ];
25 };
26}