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

27 lines
609 B
Nix
Raw Normal View History

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