nixpkgs/pkgs/development/python-modules/opt-einsum/default.nix

27 lines
611 B
Nix
Raw Normal View History

2019-09-29 05:44:23 +01:00
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
2018-12-26 18:26:26 +00:00
buildPythonPackage rec {
version = "3.2.1";
2018-12-26 18:26:26 +00:00
pname = "opt_einsum";
src = fetchPypi {
inherit version pname;
sha256 = "165r7rsl5j94kna4q3vsaq71z23lgxd9b20dgb6abrlas6c6mdw3";
2018-12-26 18:26:26 +00:00
};
propagatedBuildInputs = [ numpy ];
checkInputs = [ pytest_4 ];
2018-12-26 18:26:26 +00:00
checkPhase = ''
pytest
'';
meta = with lib; {
2018-12-26 18:26:26 +00:00
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 ];
2018-12-26 18:26:26 +00:00
};
}