blob: 491f90a88bb46197d83ae9937be3e9e6a06287dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchPypi,
hatch-fancy-pypi-readme,
hatch-vcs,
hatchling,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "3.4.0";
pname = "opt-einsum";
pyproject = true;
src = fetchPypi {
pname = "opt_einsum";
inherit version;
hash = "sha256-lspy8biG0UgkE0h4NJgZTFd/owqPqsEIWGsU8bpEc6w=";
};
build-system = [
hatch-fancy-pypi-readme
hatch-vcs
hatchling
];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "opt_einsum" ];
meta = {
description = "Optimizing NumPy's einsum function with order optimization and GPU support";
homepage = "https://github.com/dgasmith/opt_einsum";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
};
}
|