forked from hernad/odoonix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-mods.nix
130 lines (101 loc) · 2.35 KB
/
python-mods.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
{ft, lib}:
{
freetype-py = {
#name = "freetype-py";
version = "2.4.0";
extension = "zip";
sha256 = "sha256-itgRldL48zmrphcAzr+9d9760UnFH1m3WipeN4M64S4=";
};
xlrd = {
#name = "xlrd";
version = "1.2.0";
sha256 = "sha256-VG6zbO6NtAw+qkbDUeZ//ubutfomULcbxMdYopobKbI=";
};
Pillow = {
version = "10.1.0";
#format = "pyproject";
hash = "sha256-5r+N5sNu2WyG6jtuHVJzxT9G71GKBiRkzX713Sz5Ljg=";
};
pypdf2 = {
#name = "pypdf2";
version = "2.12.1";
hash = "sha256-4D7xirzHXadBoKzBp3SSU0loh744zZiHvM4c7jk9pF4=";
doCheck = false;
};
gevent = {
version = "22.10.2";
# format = "setuptools";
hash = "sha256-HKAdoXbuN7NSeicC99QNvJ/7jPx75aA7+k+e7EXlXEY=";
patches = [
./patches/gevent/threadpool.patch
];
doCheck = false;
};
devtools = {
#name = "devtools";
doCheck = false;
};
aiohttp = {
doCheck = false;
};
httpx = {
doCheck = false;
};
curio = {
doCheck = false;
};
astroid = {
doCheck = false;
};
sphinx = {
doCheck = false;
#nativeCheckInputs = [
# cython
# filelock
# html5lib
# pytestCheckHook
#];
};
watchdog = {
doCheck = false;
};
orjson = {
doCheck = false;
};
protobuf = {
doCheck = false;
};
mocket = {
doCheck = false;
};
scipy = {
doCheck = false;
};
numpy = {
doCheck = false;
};
xdist = {
doCheck = false;
};
pandas = {
doCheck = false;
};
reportlab = {
#pname = "reportlab";
version = "3.6.13";
hash = "sha256-b3XTP3o3IM9HNxq2PO0PDr0a622xk4aukviXegm+lhE=";
buildInputs = [ ft ];
postPatch = ''
substituteInPlace setup.py \
--replace "mif = findFile(d,'ft2build.h')" "mif = findFile('${lib.getDev ft}','ft2build.h')"
# Remove all the test files that require access to the internet to pass.
rm tests/test_lib_utils.py
rm tests/test_platypus_general.py
rm tests/test_platypus_images.py
# Remove the tests that require Vera fonts installed
rm tests/test_graphics_render.py
rm tests/test_graphics_charts.py
'';
doCheck = false;
};
}