2019-09-29 05:44:23 +01:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
|
|
|
|
2018-12-26 18:26:26 +00:00
|
|
|
buildPythonPackage rec {
|
2020-07-26 08:23:20 +01:00
|
|
|
version = "3.3.0";
|
2018-12-26 18:26:26 +00:00
|
|
|
pname = "opt_einsum";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2020-07-26 08:23:20 +01:00
|
|
|
sha256 = "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr";
|
2018-12-26 18:26:26 +00:00
|
|
|
};
|
|
|
|
|
2019-09-29 06:02:34 +01:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest_4 ];
|
2018-12-26 18:26:26 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-09-29 06:02:34 +01:00
|
|
|
meta = with lib; {
|
2018-12-26 18:26:26 +00:00
|
|
|
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dgasmith/opt_einsum";
|
2019-09-29 06:02:34 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
2018-12-26 18:26:26 +00:00
|
|
|
};
|
|
|
|
}
|