2019-09-28 21:44:23 -07:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
|
|
|
|
2018-12-26 10:26:26 -08:00
|
|
|
buildPythonPackage rec {
|
2020-05-23 06:58:12 -07:00
|
|
|
version = "3.2.1";
|
2018-12-26 10:26:26 -08:00
|
|
|
pname = "opt_einsum";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2020-05-23 06:58:12 -07:00
|
|
|
sha256 = "165r7rsl5j94kna4q3vsaq71z23lgxd9b20dgb6abrlas6c6mdw3";
|
2018-12-26 10:26:26 -08:00
|
|
|
};
|
|
|
|
|
2019-09-28 22:02:34 -07:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest_4 ];
|
2018-12-26 10:26:26 -08:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-09-28 22:02:34 -07:00
|
|
|
meta = with lib; {
|
2018-12-26 10:26:26 -08:00
|
|
|
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/dgasmith/opt_einsum";
|
2019-09-28 22:02:34 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
2018-12-26 10:26:26 -08:00
|
|
|
};
|
|
|
|
}
|