2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "3.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "opt_einsum";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|