1{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
2
3buildPythonPackage rec {
4 version = "3.1.0";
5 pname = "opt_einsum";
6
7 src = fetchPypi {
8 inherit version pname;
9 sha256 = "edfada4b1d0b3b782ace8bc14e80618ff629abf53143e1e6bbf9bd00b11ece77";
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}