summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-03-31 08:18:37 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:24 +0200
commit71e787161c5ae53f4607359f3d60907eb489a0d5 (patch)
treee0d1cffe614bb88a85ba965cfa9efeadeab83562 /gnu/packages
parente8cdc2d6fbaa1c3d4dfe89f1bf559b4561489042 (diff)
gnu: python-locust: Update to 2.33.2.
* gnu/packages/benchmark.scm (python-locust): Update to 2.33.2. [arguments]{test-flags}: Add additional missing test. {phases}: Add phase 'pretend-version. Adapt phase fix-version. [native-inputs]: Remove python-poetry-core, python-poetry-dynamic-versioning. Add python-hatchling, python-hatch-vcs. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/benchmark.scm33
1 files changed, 25 insertions, 8 deletions
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index 8743dc66aae..bc630bf723a 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -402,7 +402,7 @@ setup against another one.")
402(define-public python-locust 402(define-public python-locust
403 (package 403 (package
404 (name "python-locust") 404 (name "python-locust")
405 (version "2.32.5") 405 (version "2.33.2")
406 ;; The archive on Pypi has no tests. 406 ;; The archive on Pypi has no tests.
407 (source (origin 407 (source (origin
408 (method git-fetch) 408 (method git-fetch)
@@ -412,7 +412,7 @@ setup against another one.")
412 (file-name (git-file-name name version)) 412 (file-name (git-file-name name version))
413 (sha256 413 (sha256
414 (base32 414 (base32
415 "0nmhk2k0mbza9slqgms42s6hsfwwmyr275l90an02qaypx066l1n")))) 415 "055is6plxjajzp7v5q108n90j5mvdaylpna98kw9zsqn7mvfq7ms"))))
416 (build-system pyproject-build-system) 416 (build-system pyproject-build-system)
417 (arguments 417 (arguments
418 (list 418 (list
@@ -484,10 +484,21 @@ setup against another one.")
484 "not test_ramp_up_from_0_to_100_000_users_with_50_user_classes_and_1000_workers_and_5000_spawn_rate" 484 "not test_ramp_up_from_0_to_100_000_users_with_50_user_classes_and_1000_workers_and_5000_spawn_rate"
485 ;; This test fails with "AssertionError: 485 ;; This test fails with "AssertionError:
486 ;; 'stopped' != 'stopping'". 486 ;; 'stopped' != 'stopping'".
487 "not test_distributed_shape") " and ")) 487 "not test_distributed_shape"
488 ;; This test fails with AssertionError:
489 ;; "locust [...] != .locust-real"
490 "not test_invalid_stop_timeout_string"
491 ) " and "))
488 #:phases 492 #:phases
489 #~(modify-phases %standard-phases 493 #~(modify-phases %standard-phases
490 ;; The build system attempts to detect the version by spawning git. 494 ;; The build system attempts to detect the version by spawning git.
495 (add-after 'unpack 'pretend-version
496 (lambda _
497 (substitute* "pyproject.toml"
498 (("^dynamic = \\[\"version\"\\].*$")
499 (format #f "version = ~s~%" #$version))
500 (("^source = \"vcs\".*$")
501 "source = \"static\"\n"))))
491 (add-after 'unpack 'fix-version 502 (add-after 'unpack 'fix-version
492 (lambda _ 503 (lambda _
493 (let ((tuple (list 504 (let ((tuple (list
@@ -518,9 +529,15 @@ version_tuple = __version_tuple__
518 529
519"))))) 530")))))
520 (substitute* "pyproject.toml" 531 (substitute* "pyproject.toml"
521 (("setuptools = \">=70.0.0\"") "setuptools = \">=67.0.0\"") 532 (("\"setuptools>=.*\",")
522 (("^version =.*") (string-append "version = \"" #$version "\"\n")) 533 (string-append "\"setuptools>="
523 (("enable = true") "enable = false")))) 534 #$(package-version
535 (this-package-input "python-setuptools"))
536 "\","))
537 (("^version =.*")
538 (string-append "version = \"" #$version "\"\n"))
539 (("enable = true")
540 "enable = false"))))
524 (add-before 'check 'increase-resource-limits 541 (add-before 'check 'increase-resource-limits
525 (lambda _ 542 (lambda _
526 ;; XXX: Copied from ungoogled-chromium. 543 ;; XXX: Copied from ungoogled-chromium.
@@ -552,8 +569,8 @@ version_tuple = __version_tuple__
552 python-werkzeug)) 569 python-werkzeug))
553 (native-inputs 570 (native-inputs
554 (list nss-certs-for-test 571 (list nss-certs-for-test
555 python-poetry-core 572 python-hatchling
556 python-poetry-dynamic-versioning 573 python-hatch-vcs
557 python-pyquery 574 python-pyquery
558 python-pytest 575 python-pytest
559 python-retry)) 576 python-retry))