summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/python-web.scm21
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2137cc42536..fb43c9b0a06 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1176,17 +1176,19 @@ Interchange Format (SARIF)} file format.")
1176 (sha256 1176 (sha256
1177 (base32 1177 (base32
1178 "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3")))) 1178 "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3"))))
1179 (build-system python-build-system) 1179 (build-system pyproject-build-system)
1180 (arguments 1180 (arguments
1181 `(#:phases 1181 (list
1182 (modify-phases %standard-phases 1182 #:test-flags
1183 '(list "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests")
1184 #:phases
1185 '(modify-phases %standard-phases
1186 (add-before 'check 'set-HOME
1187 (lambda _ (setenv "HOME" "/tmp")))
1183 (replace 'check 1188 (replace 'check
1184 (lambda* (#:key inputs outputs #:allow-other-keys) 1189 (lambda* (#:key tests? test-flags #:allow-other-keys)
1185 ;; Skip orjson, which requires rust to build. 1190 (when tests?
1186 (substitute* "tests/test_media_handlers.py" 1191 (apply invoke "pytest" "-vv" test-flags)))))))
1187 (("== 'CPython") "!= 'CPython"))
1188 (setenv "HOME" "/tmp")
1189 (invoke "pytest" "-vv" "tests"))))))
1190 (propagated-inputs 1192 (propagated-inputs
1191 (list python-mimeparse)) 1193 (list python-mimeparse))
1192 (native-inputs 1194 (native-inputs
@@ -1197,6 +1199,7 @@ Interchange Format (SARIF)} file format.")
1197 python-httpx 1199 python-httpx
1198 python-mujson 1200 python-mujson
1199 python-msgpack 1201 python-msgpack
1202 python-orjson
1200 python-pecan 1203 python-pecan
1201 python-pillow 1204 python-pillow
1202 python-pytest 1205 python-pytest