1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/opt-einsum/default.nix

31 lines
619 B
Nix
Raw Normal View History

2019-09-29 05:44:23 +01:00
{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }:
2018-12-26 18:26:26 +00:00
buildPythonPackage rec {
version = "2.3.2";
pname = "opt_einsum";
src = fetchPypi {
inherit version pname;
sha256 = "0ny3v8x83mzpwmqjdzqhzy2pzwyy4wx01r1h9i29xw3yvas69m6k";
};
checkInputs = [
2019-09-29 05:44:23 +01:00
pytest_4
2018-12-26 18:26:26 +00:00
];
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 ];
};
}