-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpr.nix
206 lines (172 loc) · 5.03 KB
/
pr.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
# this overlay is for python packages that i've tried to open PRs to nixpkgs for
final: prev:
let
inherit (prev) buildPythonPackage fetchPypi pythonOlder;
inherit (prev.lib) licenses maintainers;
inherit (prev.pkgs) fetchFromGitHub;
in
rec {
boddle = buildPythonPackage rec {
pname = "boddle";
version = "0.2.9";
src = fetchPypi {
inherit pname version;
sha256 = "0p3bfb2n0v3w27f5ji0na5pchjprklalddxsjd1bdbdi585naldn";
};
propagatedBuildInputs = with prev; [ bottle ];
meta = {
description = "Unit testing tool for Python's bottle library";
homepage = "https://github.com/keredson/boddle";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ jpetrucciani ];
};
};
procrastinate = buildPythonPackage rec {
pname = "procrastinate";
version = "0.27.0";
pyproject = true;
src = fetchFromGitHub {
owner = "procrastinate-org";
repo = pname;
rev = version;
sha256 = "sha256-+Nv3ssQ7IBhtoMT4AfJ4XCQolEa/ZG/nSxEbiBwiAJk=";
};
preBuild = ''
substituteInPlace ./pyproject.toml --replace 'psycopg2-binary' 'psycopg2'
substituteInPlace ./poetry.lock --replace 'psycopg2-binary' 'psycopg2'
'';
propagatedBuildInputs = with prev; [
aiopg
attrs
click
croniter
poetry-core
psycopg2
python-dateutil
];
meta = {
description = "Postgres-based distributed task processing library";
homepage = "https://github.com/procrastinate-org/procrastinate";
changelog = "https://procrastinate.readthedocs.io/en/latest/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
# requirements for other packages
radon = buildPythonPackage rec {
pname = "radon";
version = "5.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1vmf56zsf3paa1jadjcjghiv2kxwiismyayq42ggnqpqwm98f7fb";
};
propagatedBuildInputs = with prev; [ mando colorama future ];
doCheck = false;
meta = {
description = "Code Metrics in Python";
homepage = "https://radon.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
mando = buildPythonPackage rec {
pname = "mando";
version = "0.6.4";
src = fetchPypi {
inherit pname version;
sha256 = "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr";
};
propagatedBuildInputs = with prev; [ six ];
doCheck = false;
meta = {
description = "Create Python CLI apps with little to no effort at all";
homepage = "https://mando.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
lox = buildPythonPackage rec {
pname = "lox";
version = "0.11.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "BrianPugh";
repo = pname;
rev = "v${version}";
hash = "sha256-kXfFRIFI1OcbDc1LujbFo/Iqg7pgwtXLkIcIFA9nehs=";
};
# patch out pytest-runner, and invalid pytest args
preBuild = ''
sed -i '/pytest-runner/d' ./setup.py
sed -i '/collect_ignore/d' ./setup.cfg
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = with prev; [
sphinxHook
sphinx-rtd-theme
];
checkInputs = with prev; [
pytestCheckHook
pytest-benchmark
pytest-mock
];
propagatedBuildInputs = with prev; [
pathos
tqdm
];
pythonImportsCheck = [
"lox"
];
meta = {
description = "Threading and Multiprocessing made easy";
homepage = "https://github.com/BrianPugh/lox";
changelog = "https://github.com/BrianPugh/lox/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
};
};
looker-sdk = buildPythonPackage rec {
pname = "looker-sdk";
version = "24.4.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "looker-open-source";
repo = "sdk-codegen";
rev = "sdk-v${version}";
hash = "sha256-n1PajH2uskbFQe4VKkJY2MB3MaCFKCBsGROw3NRPJdk=";
};
sourceRoot = "source/python";
propagatedBuildInputs = with prev; [
attrs
cattrs
exceptiongroup
requests
typing-extensions
];
pythonImportsCheck = [
"looker_sdk"
];
checkInputs = with prev; [
pytestCheckHook
pillow
pytest-mock
pyyaml
];
# disable tests that attempt to actually communicate with the api
disabledTestPaths = [
"tests/integration/test_methods.py"
"tests/integration/test_netrc.py"
"tests/rtl/test_api_methods.py"
];
meta = {
description = "Looker REST API SDK for Python";
homepage = "https://github.com/looker-open-source/sdk-codegen/tree/main/python";
changelog = "https://github.com/looker-open-source/sdk-codegen/blob/main/python/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
}