-
Notifications
You must be signed in to change notification settings - Fork 3
/
derivation.nix
220 lines (199 loc) · 4.67 KB
/
derivation.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{ lib, gnumake, gcc-arm-embedded, python3Packages, arduino-cli, cargo, maturin, rustc, rustPlatform, fetchFromGitHub }:
with python3Packages;
let
pydantic-core = buildPythonPackage rec {
pname = "pydantic_core";
pyproject = true;
version = "2.16.3";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-HKxon4Cjq6stPABIsp7qV1ERQFTwMqlBoy3kyFLFnK0=";
};
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustc
rustPlatform.maturinBuildHook
];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-w1uC9tlMDOi1+qsE+U1OZkGxezPONofeG2H9wLFp5hk=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [
typing-extensions
];
rustVersion = "latest";
};
pydantic = buildPythonPackage rec {
pname = "pydantic";
version = "2.6.3";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-4HgFxMf1xoJuM6HUydR5UNfq80ho4mkPhZTS4wJB8R8=";
};
pyproject = true;
doCheck = false;
propagatedBuildInputs = with pkgs; [
hatch-fancy-pypi-readme
annotated-types
pydantic-core
typing-extensions
];
nativeBuildInputs = [
poetry-core
hatchling
maturin
];
};
aiologger = buildPythonPackage rec {
pname = "aiologger";
version = "0.7.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-ek1ckbg2th6EKnkQcXhqPYDWtvpG+4/Y5zORJT7Lcqw=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [
aiofiles
];
};
aiopath = buildPythonPackage rec {
pname = "aiopath";
version = "0.6.11";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-Lw1NkZUoFhLGUIy/oSrDGEwxVA0TueYhWjJYl9pZ3s0=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [
aiofile
anyio
];
};
clang = buildPythonPackage rec {
pname = "clang";
version = "16.0.1.1";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-TVkY9aiYXxV5RyOOGbYEOpP7X3e3qfKwH6+OlItEeKk=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [ ];
};
cyberiadaml-py = buildPythonPackage rec {
pname = "cyberiadaml_py";
version = "1.2";
pyproject = true;
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-+Psv0NMtzNYxTjXTFGAQ7lRF6dCfrd5jPrQ1SVViYnI=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [
xmltodict
poetry
poetry-core
pydantic
];
};
typed-argument-parser = buildPythonPackage rec {
pname = "typed-argument-parser";
version = "1.10.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-0ORjURVJ8pUd8paLGBuFbC4oG+GrH0RxQ33gjrQRPvI=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [typing-inspect docstring-parser];
};
aiofile = buildPythonPackage rec {
pname = "aiofile";
version = "3.8.7";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256:a8f9dec17282b3583337c4ef2d1a67f33072ab80dd03608041ed9e71b88dc521";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [caio];
};
aiofiles = buildPythonPackage rec {
pname = "aiofiles";
version = "23.1.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256:edd247df9a19e0db16534d4baaf536d6609a43e1de5401d7a4c1c148753a1635";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [];
};
aiohttp = buildPythonPackage rec {
pname = "aiohttp";
version = "3.8.4";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256:bf2e1a9162c1e441bf805a1fd166e249d574ca04e03b34f97e2928769e91ab5c";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [
attrs
multidict
async-timeout
yarl
frozenlist
aiosignal
aiodns
brotli
charset-normalizer
];
};
argcomplete = buildPythonPackage rec {
pname = "argcomplete";
version = "3.4.0";
pyproject = true;
nativeBuildInputs = [
setuptools
setuptools-scm
];
src = fetchFromGitHub {
owner = "kislyuk";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-4JMyBixc6LcSdpvvLmK4nyyqZMK2kuFcPU7OXhJLpoc=";
};
doCheck = false;
propagatedBuildInputs = with pkgs; [];
};
in
buildPythonApplication {
pname = "lapki-compiler";
version = "0.2.0";
pyproject = true;
nativeBuildInputs = with pkgs; [
poetry-core
];
propagatedBuildInputs = [
aiofile
aiohttp
aioshutil
lxml
pytest
pytest-asyncio
xmltodict
aiologger
aiopath
clang
pydantic
arduino-cli
gnumake
gcc-arm-embedded
argcomplete
typed-argument-parser
flake8
cyberiadaml-py
];
doCheck = false;
src = ./.;
}