aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix b/nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix
new file mode 100644
index 00000000000..11da1ba1ea5
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/opt-einsum/2.nix
@@ -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 ];
+ };
+}