summaryrefslogtreecommitdiff
path: root/gnu/packages/benchmark.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-01-19 00:25:18 +0100
committerMarius Bakke <marius@gnu.org>2022-01-19 10:05:30 +0100
commit8d70f509c700a66a6b94ff42aa0db53d582dfb53 (patch)
tree3170f1f9cf073072e66ee065979b0777ee2c4d3b /gnu/packages/benchmark.scm
parent312686ac5f5c17eb66feb4f56c3f3bfae7ffb512 (diff)
gnu: python-locust: Update to 2.5.1.
* gnu/packages/benchmark.scm (python-locust): Update to 2.5.1. [arguments]: Remove obsolete phase. Respect TESTS? in check phase. [native-inputs]: Add PYTHON-RETRY and PYTHON-SETUPTOOL-SCM. [propagated-inputs]: Add PYTHON-FLASK-CORS, PYTHON-ROUNDROBIN, and PYTHON-TYPING-EXTENSIONS.
Diffstat (limited to 'gnu/packages/benchmark.scm')
-rw-r--r--gnu/packages/benchmark.scm61
1 files changed, 29 insertions, 32 deletions
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index 817e6b1957f..537f6262c4a 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -254,60 +254,57 @@ file metadata operations that can be performed per second.")
254(define-public python-locust 254(define-public python-locust
255 (package 255 (package
256 (name "python-locust") 256 (name "python-locust")
257 (version "1.4.3") 257 (version "2.5.1")
258 (source 258 (source
259 (origin 259 (origin
260 (method url-fetch) 260 (method url-fetch)
261 (uri (pypi-uri "locust" version)) 261 (uri (pypi-uri "locust" version))
262 (sha256 262 (sha256
263 (base32 263 (base32
264 "0vmw151xcaznd2j85n96iyv9fniss0bkk91xn4maw2gwzym424xk")))) 264 "1516z6z5pikybg7pma2cgxgj3wxaaky7z6d30mxf81wd4krbq16s"))))
265 (build-system python-build-system) 265 (build-system python-build-system)
266 (arguments 266 (arguments
267 `(#:phases 267 '(#:phases
268 (modify-phases %standard-phases 268 (modify-phases %standard-phases
269 (add-before 'check 'extend-PATH
270 ;; Add the 'locust' script to PATH, which is used in the test
271 ;; suite.
272 (lambda* (#:key outputs #:allow-other-keys)
273 (let ((out (assoc-ref outputs "out")))
274 (setenv "PATH" (string-append out "/bin:"
275 (getenv "PATH"))))))
276 (replace 'check 269 (replace 'check
277 (lambda _ 270 (lambda* (#:key tests? #:allow-other-keys)
278 (invoke "python" "-m" "pytest" 271 (when tests?
279 "-k" (string-join 272 (invoke "python" "-m" "pytest" "locust"
280 (list 273 "-k" (string-join
281 ;; These tests return "non-zero exit status 1". 274 '(;; These tests return "non-zero exit status 1".
282 "not test_default_headless_spawn_options" 275 "not test_default_headless_spawn_options"
283 "not test_default_headless_spawn_options_with_shape" 276 "not test_default_headless_spawn_options_with_shape"
284 "not test_headless_spawn_options_wo_run_time" 277 "not test_headless_spawn_options_wo_run_time"
285 ;; These tests depend on networking. 278 ;; These tests depend on networking.
286 "not test_html_report_option" 279 "not test_html_report_option"
287 "not test_web_options" 280 "not test_web_options"
288 ;; This test fails because of the warning "System open 281 ;; This test fails because of the warning "System open
289 ;; file limit '1024' is below minimum setting '10000'". 282 ;; file limit '1024' is below minimum setting '10000'".
290 "not test_skip_logging" 283 "not test_skip_logging"
291 ;; On some (slow?) machines, the following tests 284 ;; On some (slow?) machines, the following tests
292 ;; fail, with the processes returning exit code 285 ;; fail, with the processes returning exit code
293 ;; -15 instead of the expected 42 and 0, 286 ;; -15 instead of the expected 42 and 0,
294 ;; respectively (see: 287 ;; respectively (see:
295 ;; https://github.com/locustio/locust/issues/1708). 288 ;; https://github.com/locustio/locust/issues/1708).
296 "not test_custom_exit_code" 289 "not test_custom_exit_code"
297 "not test_webserver") " and "))))))) 290 "not test_webserver") " and "))))))))
298 (propagated-inputs 291 (propagated-inputs
299 (list python-configargparse 292 (list python-configargparse
300 python-flask 293 python-flask
301 python-flask-basicauth 294 python-flask-basicauth
295 python-flask-cors
302 python-gevent 296 python-gevent
303 python-geventhttpclient 297 python-geventhttpclient
304 python-msgpack 298 python-msgpack
305 python-psutil 299 python-psutil
306 python-pyzmq 300 python-pyzmq
307 python-requests 301 python-requests
302 python-roundrobin
303 python-typing-extensions
308 python-werkzeug)) 304 python-werkzeug))
309 (native-inputs 305 (native-inputs
310 (list python-mock python-pyquery python-pytest)) ;for more easily skipping tests 306 (list python-mock python-pyquery python-pytest
307 python-retry python-setuptools-scm))
311 (home-page "https://locust.io/") 308 (home-page "https://locust.io/")
312 (synopsis "Distributed load testing framework") 309 (synopsis "Distributed load testing framework")
313 (description "Locust is a performance testing tool that aims to be easy to 310 (description "Locust is a performance testing tool that aims to be easy to