blob: 67312b1b0deb73701f967a5b1c9f8a9e8bbb94ee (
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,
einops,
fetchFromGitHub,
hatchling,
pytestCheckHook,
torch,
}:
buildPythonPackage (finalAttrs: {
pname = "hyper-connections";
version = "0.4.5";
pyproject = true;
src = fetchFromGitHub {
owner = "lucidrains";
repo = "hyper-connections";
tag = finalAttrs.version;
hash = "sha256-CAhLDBZvmdHwVTbKVgWnS0qs5TE4a05iorbR7Ejh2uM=";
};
build-system = [ hatchling ];
dependencies = [
einops
torch
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hyper_connections" ];
meta = {
description = "Module to make multiple residual streams";
homepage = "https://github.com/lucidrains/hyper-connections";
changelog = "https://github.com/lucidrains/hyper-connections/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})
|