diff options
author | Tom Hunger <tehunger@gmail.com> | 2018-12-26 18:26:26 +0000 |
---|---|---|
committer | Tom Hunger <tehunger@gmail.com> | 2018-12-26 19:16:05 +0000 |
commit | 4411b29065635a2058d713b70b43076eedaab24f (patch) | |
tree | 3c3d80078cf82725968cd1d1826d39e779350b41 /pkgs/development/python-modules/opt-einsum | |
parent | a2fe6bca05f9d70337d04c0feaf7709a1d6c574c (diff) |
opt-einsum: init at 2.3.2
Diffstat (limited to 'pkgs/development/python-modules/opt-einsum')
-rw-r--r-- | pkgs/development/python-modules/opt-einsum/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/opt-einsum/default.nix b/pkgs/development/python-modules/opt-einsum/default.nix new file mode 100644 index 0000000000000..c28105d4e4924 --- /dev/null +++ b/pkgs/development/python-modules/opt-einsum/default.nix @@ -0,0 +1,31 @@ +{ buildPythonPackage, fetchPypi, lib, numpy, pytest, pytestpep8, pytestcov }: +buildPythonPackage rec { + version = "2.3.2"; + pname = "opt_einsum"; + + src = fetchPypi { + inherit version pname; + sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k"; + }; + + checkInputs = [ + pytest + pytestpep8 + pytestcov + ]; + + 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 ]; + }; +} |