python3Packages.opt-einsum: 2.3.2 -> 3.0.1

This commit is contained in:
Jonathan Ringer 2019-09-28 22:02:34 -07:00 committed by Frederik Rietdijk
parent 6524733382
commit 3a63bee154
3 changed files with 42 additions and 13 deletions

View file

@ -0,0 +1,30 @@
{ 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 = http://optimized-einsum.readthedocs.io;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
};
}

View file

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

View file

@ -3165,7 +3165,10 @@ in {
pyro-ppl = callPackage ../development/python-modules/pyro-ppl {};
opt-einsum = callPackage ../development/python-modules/opt-einsum {};
opt-einsum = if isPy27 then
callPackage ../development/python-modules/opt-einsum/2.nix {}
else
callPackage ../development/python-modules/opt-einsum {};
pytorchWithCuda = self.pytorch.override {
cudaSupport = true;