-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
158 lines (138 loc) · 3.69 KB
/
default.nix
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{ python3, pkgs }:
let
aioipfs = python3.pkgs.buildPythonPackage rec {
pname = "aioipfs";
version = "0.4.4";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-KOp+2WY5m92vQLKeihfDH9hBfykYxPdAfxyTD4v0P3w=";
};
propagatedBuildInputs = with python3.pkgs; [
aiohttp
base58
aiofiles
py-multiaddr
];
doCheck = true;
pythonImportsCheck = [
"aioipfs"
];
};
aleph-message = python3.pkgs.buildPythonPackage rec {
pname = "aleph-message";
version = "0.4.9";
src = pkgs.fetchPypi {
inherit version;
pname = "aleph_message";
sha256 = "sha256-CefACPgFMGG0F5lz/LdqkevrZsdd7afMNGjShlmSF7U=";
};
doCheck = false;
pythonImportsCheck = [
"aleph_message.models"
];
propagatedBuildInputs = [
pkgs.python3Packages.pydantic_1
];
};
aleph-superfluid = python3.pkgs.buildPythonPackage rec {
pname = "aleph-superfluid";
version = "0.2.1";
src = pkgs.fetchPypi {
inherit version;
pname = "aleph_superfluid";
sha256 = "sha256-6tiH5mNnIdAYCV40E70WH/v3CSlE0VI4WaHhkA/sZ0w=";
};
doCheck = false;
pythonImportsCheck = [
"superfluid"
];
propagatedBuildInputs = [
python3.pkgs.web3
];
};
aleph-sdk-python = python3.pkgs.buildPythonPackage rec {
pname = "aleph-sdk-python";
version = "1.0.1";
pyproject = true;
# The library should ideally be fetched from PyPI, but the latest version
# has dependencies pinned too strictly for the propagated inputs from `nixpkgs`
# to be satisfied. For now, we fetch the library from the branch
# `hoh-relax-dependencies` on GitHub instead.
# src = pkgs.fetchPypi {
# inherit version;
# pname = "aleph_sdk_python";
# sha256 = "sha256-jsRT3dT3OgeNkDwGsYZc1kq2L26+HPuS1u/oYE9T3xk=";
# };
src = pkgs.fetchFromGitHub {
owner = "aleph-im";
repo = "aleph-sdk-python";
rev = "38a917d7664b47386da79f1b5bd1ef283e1aaaa2";
sha256 = "sha256-Y/cXr64VYDo94RciVjveiZGaGdVHMqX2rQnORxD7R5g=";
};
doCheck = true;
pythonImportsCheck = [
"aleph.sdk"
];
propagatedBuildInputs = [
python3.pkgs.pydantic_1
python3.pkgs.hatchling
python3.pkgs.hatch-vcs
python3.pkgs.aiohttp
python3.pkgs.aioresponses
python3.pkgs.coincurve
python3.pkgs.eth-abi
python3.pkgs.jwcrypto
python3.pkgs.python-magic
aleph-message
aleph-superfluid
];
};
schedule = python3.pkgs.buildPythonPackage rec {
pname = "schedule";
version = "1.2.2";
src = python3.pkgs.fetchPypi {
inherit version;
pname = "schedule";
sha256 = "sha256-Ff6cdf5f2blifz8ZzA7xQgUI+fmkb0XNB2nvde3l8Lc=";
};
doCheck = false;
propagatedBuildInputs = [ ];
};
in
python3.pkgs.buildPythonPackage rec {
pname = "aleph-scoring";
version = "1.0.0"; # Define your version
src = ./.;
pyproject = true;
nativeBuildInputs = with python3.pkgs; [
hatchling
hatch-vcs
] ++ [ pkgs.git ];
propagatedBuildInputs = [
python3.pkgs.asyncpg
python3.pkgs.cachetools
python3.pkgs.cryptography
python3.pkgs.fusepy
python3.pkgs.icmplib
python3.pkgs.paramiko
python3.pkgs.pyasn
python3.pkgs.pygments
python3.pkgs.python-magic
python3.pkgs.sentry-sdk
python3.pkgs.typer
python3.pkgs.psutil
aioipfs
aleph-sdk-python
schedule
];
doCheck = true;
pythonImportsCheck = [
"aleph_scoring"
"aleph_scoring.metrics"
];
meta = with python3.pkgs.lib; {
description = "Aleph Scoring Project";
homepage = "https://github.com/aleph-im/aleph-scoring";
license = licenses.mit;
};
}