depot/third_party/nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
622 B
Nix

{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
buildPythonPackage rec {
version = "2.3.2";
pname = "opt_einsum";
src = fetchPypi {
inherit version pname;
sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k";
};
checkInputs = [
pytest_4
];
checkPhase = ''
pytest
'';
propagatedBuildInputs = [
numpy
];
meta = {
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
homepage = "https://optimized-einsum.readthedocs.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
};
}