-
-
Notifications
You must be signed in to change notification settings - Fork 453
/
Copy pathdefault.nix
263 lines (243 loc) · 10.2 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
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
let
flake = builtins.getFlake "${toString ../.}";
in
{ pkgs ? import flake.inputs.nixpkgs {
config = {
allowAliases = false;
allowInsecurePredicate = _: true;
};
overlays = [ flake.overlays.default ];
}
}:
let
pkgs' = pkgs // {
inherit poetry2nix;
# At the time of writing 3.12 is causing issues.
python3 = pkgs.python311;
python = pkgs.python311;
};
poetry2nix = import ./.. { pkgs = pkgs'; };
callTest = lib.callPackageWith pkgs';
inherit (pkgs) lib stdenv;
in
{
# {x86_64,aarch64}-{linux,darwin}
trivial = callTest ./trivial { };
# Uses the updated 1.2.0 lockfile format
trivial-poetry-1_2_0 = callTest ./trivial-poetry-1_2_0 { };
legacy = callTest ./legacy { };
composable-defaults = callTest ./composable-defaults { };
override = callTest ./override-support { };
override-default = callTest ./override-default-support { };
env = callTest ./env { };
ansible-molecule = callTest ./ansible-molecule { };
pytest-metadata = callTest ./pytest-metadata { };
file-src-deps = callTest ./file-src-deps { };
file-src-deps-level2 = callTest ./file-src-deps-level2 { };
file-wheel-deps = callTest ./file-wheel-deps { };
file-wheel-deps-level2 = callTest ./file-wheel-deps-level2 { };
git-deps = callTest ./git-deps { };
git-deps-1_2_0 = callTest ./git-deps-1_2_0 { };
git-deps-pinned = callTest ./git-deps-pinned { };
in-list = callTest ./in-list { };
path-deps = callTest ./path-deps { };
path-deps-develop = callTest ./path-deps-develop { };
path-deps-level2 = callTest ./path-deps-level2 { };
operators = callTest ./operators { };
prefer-wheels = callTest ./prefer-wheels { };
closure-size = callTest ./closure-size {
inherit (pkgs) postgresql;
};
extras = callTest ./extras { };
source-filter = callTest ./source-filter { };
canonical-module-names = callTest ./canonical-module-names { };
utf8-pyproject = callTest ./utf8-pyproject { };
inherit (poetry2nix) cli;
black = callTest ./black { };
blinker-1_6_2 = callTest ./blinker-1_6_2 { };
blinker = callTest ./blinker { };
bcrypt = callTest ./bcrypt { };
click-pre-8_1_8 = callTest ./click-pre-8_1_8 { };
click = callTest ./click { };
color-operations = callTest ./color-operations { };
cryptography-43 = callTest ./cryptography-43 { };
cryptography = callTest ./cryptography { };
mk-poetry-packages = callTest ./mk-poetry-packages { };
mailchimp3 = callTest ./mailchimp3 { };
markupsafe2 = callTest ./markupsafe2 { };
mysqlclient = callTest ./mysqlclient { };
jq = callTest ./jq { };
ubersmith = callTest ./ubersmith { };
use-url-src = callTest ./use-url-src { };
use-url-wheel = callTest ./use-url-wheel { };
returns = callTest ./returns { };
option = callTest ./option { };
fastapi = callTest ./fastapi { };
fastapi-utils = callTest ./fastapi-utils { };
awscli = callTest ./awscli { };
assorted-pkgs = callTest ./assorted-pkgs { };
watchfiles = callTest ./watchfiles { };
sqlalchemy = callTest ./sqlalchemy { };
sqlalchemy2 = callTest ./sqlalchemy2 { };
tzlocal = callTest ./tzlocal { };
jake = callTest ./jake { };
pyproj = callTest ./pyproj { };
# newer versions of torchvision are built against newer
# versions of the osx sdk, so for ml-stack, we have an "old"
# test that ensures we can still build on osx < 10.13 SDK version
# while:
#
# 1. the nix community finishes up work on darwinSDKVersion
# 2. GitHub figures out its aarch64-darwin story
ml-stack-old = callTest ./ml-stack-old { };
dependency-groups = callTest ./dependency-groups { };
# And also test with pypy
# poetry-pypy = poetry.override { python = pkgs.pypy; };
# poetry-pypy3 = poetry.override { python = pkgs.pypy3; };
jupyterlab-3 = callTest ./jupyterlab-3 { };
jupyterlab = callTest ./jupyterlab { };
shapely = callTest ./shapely { };
shapely-pre-2 = callTest ./shapely-pre-2 { };
setuptools = callTest ./setuptools { };
affine = callTest ./affine { };
affine-pre-2-4 = callTest ./affine-pre-2-4 { };
cattrs = callTest ./cattrs { };
cattrs-pre-23-2 = callTest ./cattrs-pre-23-2 { };
cdk-nag = callTest ./cdk-nag { };
commitizen = callTest ./commitizen { };
arrow = callTest ./arrow { };
gitlint-core = callTest ./gitlint-core { };
gitlint = callTest ./gitlint { };
jupyter-ydoc = callTest ./jupyter-ydoc { };
mutmut = callTest ./mutmut { };
procrastinate = callTest ./procrastinate { };
decli = callTest ./decli { };
decli-pre-0_6_2 = callTest ./decli-pre-0_6_2 { };
pytest-redis = callTest ./pytest-redis { };
pylint-django = callTest ./pylint-django { };
pylint-django-pre-2-5-4 = callTest ./pylint-django-pre-2-5-4 { };
scipy1_11 = callTest ./scipy1_11 { };
test-group = callTest ./test-group { };
nbconvert-wheel = callTest ./nbconvert-wheel { };
duckdb-wheel = callTest ./duckdb-wheel { };
shandy-sqlfmt = callTest ./shandy-sqlfmt { };
fiona-source = callTest ./fiona-source { };
shapely-wheel = callTest ./shapely-wheel { };
cffi-pandas-wheel = callTest ./cffi-pandas-wheel { };
mkdocstrings-wheel = callTest ./mkdocstrings-wheel { };
mkdocs-material = callTest ./mkdocs-material { };
test-extras = callTest ./test-extras { };
test-no-extras = callTest ./test-no-extras { };
missing-iswheel = callTest ./missing-iswheel { };
wheel-wheel = callTest ./wheel-wheel { };
fancycompleter-wheel = callTest ./fancycompleter-wheel { };
matplotlib-3-7 = callTest ./matplotlib-3-7 { };
matplotlib-3-9 = callTest ./matplotlib-3-9 { };
rfc3986-validator = callTest ./rfc3986-validator { };
virtualenv-pre-20-18 = callTest ./virtualenv-pre-20-18 { };
virtualenv-post-20-18 = callTest ./virtualenv-post-20-18 { };
grpcio-wheel = callTest ./grpcio-wheel { };
panel-wheels = callTest ./panel-wheels { };
markdown-it-py-wheel = callTest ./markdown-it-py-wheel { };
cairocffi-wheel = callTest ./cairocffi-wheel { };
cairocffi-no-wheel = callTest ./cairocffi-no-wheel { };
rpds-py-wheel = callTest ./rpds-py-wheel { };
rpds-py-no-wheel = callTest ./rpds-py-no-wheel { };
contourpy-wheel = callTest ./contourpy-wheel { };
contourpy-no-wheel = callTest ./contourpy-no-wheel { };
pytesseract = callTest ./pytesseract { };
subdirectory = callTest ./subdirectory { };
plyvel = callTest ./plyvel { };
awsume = callTest ./awsume { };
gobject-introspection = callTest ./gobject-introspection { };
pydantic-1 = callTest ./pydantic-1 { };
python-versions-or = callTest ./python-versions-or { };
python-markers = callTest ./python-markers { };
orjson-test = callTest ./orjson-test { };
ruff = callTest ./ruff { };
colour = callTest ./colour { };
gnureadline = callTest ./gnureadline { };
twisted = callTest ./twisted { };
scientific = callTest ./scientific { };
apsw = callTest ./apsw { };
no-infinite-recur-on-missing-gitignores = callTest ./no-infinite-recur-on-missing-gitignores { };
pyzmq = callTest ./pyzmq { };
git-subdirectory-hook = callTest ./git-subdirectory-hook { };
pandas = callTest ./pandas { };
python-magic = callTest ./python-magic { };
avro-python3 = callTest ./avro-python3 { };
mpi4py-test = callTest ./mpi4py-test { };
ckzg = callTest ./ckzg { };
thrift = callTest ./thrift { };
scikit-learn = callTest ./scikit-learn { };
soundfile-wheel = callTest ./soundfile-wheel { };
soundfile = callTest ./soundfile { };
pyogrio = callTest ./pyogrio { };
dask-dataframe = callTest ./dask-dataframe { };
argon2-cffi-bindings-python-3-12 = callTest ./argon2-cffi-bindings-python-3-12 { };
cyclonedx-and-sarif-tools = callTest ./cyclonedx-and-sarif-tools { };
propcache = callTest ./propcache { };
shellcheck-py = callTest ./shellcheck-py { };
} // lib.optionalAttrs (!stdenv.isDarwin) {
# Editable tests fails on Darwin because of sandbox paths
pep600 = callTest ./pep600 { };
editable = callTest ./editable { };
# Fails because of missing inputs on darwin
text-generation-webui = callTest ./text-generation-webui { };
# Cross tests fail on darwin for some strange reason:
# ERROR: MarkupSafe-2.0.1-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.
extended-cross = callTest ./extended-cross { };
trivial-cross = callTest ./trivial-cross { };
# impure when using a wheel
pyodbc-wheel = callTest ./pyodbc-wheel { };
# linux-only API (AIO)
aiopath = callTest ./aiopath { };
# doesn't compile on darwin
matplotlib-3-6 = callTest ./matplotlib-3-6 { };
# the version of scipy used here doesn't build from source on darwin
scipy1_9 = callTest ./scipy1_9 { };
# Gives "error: Missing suitable source/wheel file entry for gmsh"
gmsh = callTest ./gmsh { };
} // lib.optionalAttrs (!stdenv.isAarch64) {
# no wheel for aarch64 for the tested packages
# x86_64-{linux,darwin}
preferWheel = callTest ./prefer-wheel { };
} // lib.optionalAttrs (!stdenv.isDarwin || stdenv.isAarch64) {
# {x86_64,aarch64}-linux
# aarch64-darwin
pyarrow-wheel = callTest ./pyarrow-wheel { };
fiona-wheel = callTest ./fiona-wheel { };
ml-stack = callTest ./ml-stack { };
flink = callTest ./flink { };
} // lib.optionalAttrs (stdenv.isLinux && stdenv.isx86_64) {
# x86_64-linux
pyqt6 = callTest ./pyqt6 { };
vllm-wheel = callTest ./vllm-wheel { };
} // lib.optionalAttrs (!(stdenv.isLinux && stdenv.isAarch64)) {
# x86_64-linux
# {x86_64,aarch64}-darwin
pyside6 = callTest ./pyside6 { };
textual-dev = callTest ./textual-dev { };
textual-textarea = callTest ./textual-textarea { };
sphinx5 = callTest ./sphinx5 { };
wandb = callTest ./wandb { };
# sphinx build from the following tests fail on aarch64-linux
manylinux = callTest ./manylinux { };
gdal = callTest ./gdal { };
rasterio = callTest ./rasterio { };
common-pkgs-1 = callTest ./common-pkgs-1 { };
common-pkgs-2 = callTest ./common-pkgs-2 { };
pytest-randomly = callTest ./pytest-randomly { };
fetched-projectdir = callTest ./fetched-projectdir { };
cmdstanpy = callTest ./cmdstanpy { };
} // lib.optionalAttrs (stdenv.isLinux && stdenv.isx86_64) {
# x86_86-linux
pendulum = callTest ./pendulum { };
pendulum-with-rust = callTest ./pendulum-with-rust { };
tensorflow = callTest ./tensorflow { };
# Test deadlocks on darwin and fails to start at all with aarch64-linux,
# sandboxing issue?
dependency-environment = callTest ./dependency-environment { };
editable-egg = callTest ./editable-egg { };
eth-utils= callTest ./eth-utils { };
}