From 08dd8e45062a2b3b5ad34fc92c8c8b10bacbffd9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 1 Dec 2024 09:24:24 +0000 Subject: [PATCH] gnu: python-flake8-bugbear: Update to 24.10.31. * gnu/packages/python-xyz.scm (python-flake8-bugbear): Update to 24.10.31. Improve style. [source]: Adjust URI name as PyPI archive was changed. [build-system]: Swap to pyproject-build-system. [arguments]: Remove 'disable-test. [native-inputs]: Remove python-hypothesis; add python-pytest, python-setuptools, and python-wheel. [description]: Start from a new line, adjust fill column. Change-Id: Id8580c8b2d20820a9f16ec719d35ac3b1dbf548e --- gnu/packages/python-xyz.scm | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 605085a10e5f123177889d0a97c62b64927bae16..f193be0a5098b5bcb601521a9f4659d8b19a4fa8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15336,35 +15336,28 @@ blind @code{except:} statements.") (define-public python-flake8-bugbear (package (name "python-flake8-bugbear") - (version "20.1.4") + (version "24.10.31") (source (origin (method url-fetch) - (uri (pypi-uri "flake8-bugbear" version)) + (uri (pypi-uri "flake8_bugbear" version)) (sha256 - (base32 - "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-before 'check 'disable-test - (lambda _ - ;; This test fails on slow computers. - (substitute* "tests/test_bugbear.py" - (("def test_does_not_crash_on_any_valid_code") - "def _test_does_not_crash_on_any_valid_code"))))))) + (base32 "1nrrwhfmk49riflmng26qqjzvfang5lij14ripzqwzxjf8f56ns3")))) + (build-system pyproject-build-system) (native-inputs - (list python-hypothesis python-hypothesmith)) + (list python-hypothesmith + python-pytest + python-setuptools + python-wheel)) (propagated-inputs - (list python-attrs python-flake8)) + (list python-attrs + python-flake8)) (home-page "https://github.com/PyCQA/flake8-bugbear") - (synopsis - "Flake8 plugin for finding likely bugs and design problems in your program") + (synopsis "Flake8 plugin for finding likely bugs and design problems in your program") (description - "This package contains a plugin for Flake8 finding likely bugs and -design problems in your program. It contains warnings that don't belong -in pyflakes and pycodestyle.") + "This package contains a plugin for Flake8 finding likely bugs and design +problems in your program. It contains warnings that don't belong in pyflakes +and pycodestyle.") (license license:expat))) (define-public python-flake8-continuation