2019-09-29 04:44:23 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
|
|
|
|
2018-12-26 18:26:26 +00:00
|
|
|
buildPythonPackage rec {
|
2019-10-24 06:47:40 +00:00
|
|
|
version = "3.1.0";
|
2018-12-26 18:26:26 +00:00
|
|
|
pname = "opt_einsum";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2019-10-24 06:47:40 +00:00
|
|
|
sha256 = "edfada4b1d0b3b782ace8bc14e80618ff629abf53143e1e6bbf9bd00b11ece77";
|
2018-12-26 18:26:26 +00:00
|
|
|
};
|
|
|
|
|
2019-09-29 05:02:34 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest_4 ];
|
2018-12-26 18:26:26 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-09-29 05:02:34 +00:00
|
|
|
meta = with lib; {
|
2018-12-26 18:26:26 +00:00
|
|
|
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
|
|
|
|
homepage = http://optimized-einsum.readthedocs.io;
|
2019-09-29 05:02:34 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
2018-12-26 18:26:26 +00:00
|
|
|
};
|
|
|
|
}
|