python3Packages.opt-einsum: 2.3.2 -> 3.0.1
This commit is contained in:
parent
6524733382
commit
3a63bee154
30
pkgs/development/python-modules/opt-einsum/2.nix
Normal file
30
pkgs/development/python-modules/opt-einsum/2.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,30 +1,26 @@
|
||||||
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "2.3.2";
|
version = "3.0.1";
|
||||||
pname = "opt_einsum";
|
pname = "opt_einsum";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version pname;
|
inherit version pname;
|
||||||
sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k";
|
sha256 = "1agyvq26x0zd6j3wzgczl4apx8v7cb9w1z50azn8c3pq9jphgfla";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
propagatedBuildInputs = [ numpy ];
|
||||||
pytest_4
|
|
||||||
];
|
checkInputs = [ pytest_4 ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
meta = with lib; {
|
||||||
numpy
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
|
description = "Optimizing NumPy's einsum function with order optimization and GPU support.";
|
||||||
homepage = http://optimized-einsum.readthedocs.io;
|
homepage = http://optimized-einsum.readthedocs.io;
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ teh ];
|
maintainers = with maintainers; [ teh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3165,7 +3165,10 @@ in {
|
||||||
|
|
||||||
pyro-ppl = callPackage ../development/python-modules/pyro-ppl {};
|
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 {
|
pytorchWithCuda = self.pytorch.override {
|
||||||
cudaSupport = true;
|
cudaSupport = true;
|
||||||
|
|
Loading…
Reference in a new issue