mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
69b393ace5
These URLs are reported as problematic by Repology. It could be a permanent redirection or the page does not exist anymore
31 lines
622 B
Nix
31 lines
622 B
Nix
{ 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 = "https://optimized-einsum.readthedocs.io";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ teh ];
|
|
};
|
|
}
|