summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-01-19 21:27:08 +0900
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:32 +0100
commit81df280103e692725a3983689f1a7a622d31dfc2 (patch)
treedf128f1eea74be4799dacf6dc7fa7f42b06c3546 /gnu/packages
parentb984aaab6028ac298cb08e3ea51f1823ad8210b4 (diff)
gnu: Add python-blockbuster.
* gnu/packages/python-check.scm (python-blockbuster): Add variable. Change-Id: I7cbdea1d62f700d75d92b8fd98929dc716e038e0 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-check.scm36
-rw-r--r--gnu/packages/python-xyz.scm2
2 files changed, 37 insertions, 1 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 4d1b3605ea9..04a7a3bc36a 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -481,6 +481,42 @@ all the files it generates a report.")
481written in pure Python.") 481written in pure Python.")
482 (license license:expat))) 482 (license license:expat)))
483 483
484(define-public python-blockbuster
485 (package
486 (name "python-blockbuster")
487 (version "1.5.26")
488 (source
489 (origin
490 (method git-fetch)
491 (uri (git-reference
492 (url "https://github.com/cbornet/blockbuster")
493 (commit (string-append "v" version))))
494 (file-name (git-file-name name version))
495 (sha256
496 (base32 "16ycwblivp6d7s78sxq97f9xb4vxcjfr5srxhpkpssv770lp37fs"))))
497 (build-system pyproject-build-system)
498 ;; test_ssl_socket wants to connects to the Internet.
499 (arguments (list #:test-flags #~'("-k" "not test_ssl_socket")))
500 (native-inputs (list python-hatchling
501 python-pytest
502 python-pytest-asyncio
503 python-requests))
504 (propagated-inputs (list python-forbiddenfruit))
505 (home-page "https://github.com/cbornet/blockbuster")
506 (synopsis "Utility to detect blocking calls in Python async event loop")
507 (description
508 "Blockbuster is a Python package designed to detect and prevent
509blocking calls within an asynchronous event loop. It is particularly useful
510when executing tests to ensure that your asynchronous code
511does not inadvertently call blocking operations,
512which can lead to performance bottlenecks and unpredictable behavior.
513
514It does this by wrapping common blocking functions
515and raising an exception when they are called within an asynchronous context.
516Note that Blockbuster currently only detects @code{asyncio} event loops
517and is tested only with CPython.")
518 (license license:asl2.0)))
519
484(define-public python-codacy-coverage 520(define-public python-codacy-coverage
485 (package 521 (package
486 (name "python-codacy-coverage") 522 (name "python-codacy-coverage")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c49035e7a29..d93c7fce32f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -166,7 +166,7 @@
166;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi> 166;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
167;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo> 167;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo>
168;;; Copyright © 2025 Dariqq <dariqq@posteo.net> 168;;; Copyright © 2025 Dariqq <dariqq@posteo.net>
169;;; Copyright © 2025 Nguyễn Gia Phong <cnx@loang.net> 169;;; Copyright © 2025-2026 Nguyễn Gia Phong <cnx@loang.net>
170;;; Copyright © 2025, Cayetano Santos <csantosb@inventati.org> 170;;; Copyright © 2025, Cayetano Santos <csantosb@inventati.org>
171;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com> 171;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
172;;; Copyright © 2025 Luis Felipe López Acevedo <sirgazil@zoho.com> 172;;; Copyright © 2025 Luis Felipe López Acevedo <sirgazil@zoho.com>