[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear.
From: |
Tanguy Le Carrour |
Subject: |
[bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear. |
Date: |
Mon, 27 Jul 2020 10:00:49 +0200 |
* gnu/packages/python-xyz.scm (python-flake8-bugbear): New variable.
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e67ba783fe..7015c20b4e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7910,6 +7910,42 @@ complexity of Python source code.")
("python-pyflakes" ,python-pyflakes-1.2)
("python-mccabe" ,python-mccabe)))))
+(define-public python-flake8-bugbear
+ (package
+ (name "python-flake8-bugbear")
+ (version "20.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (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")))))))
+ (native-inputs
+ `(("python-hypothesis" ,python-hypothesis)
+ ("python-hypothesmith" ,python-hypothesmith)))
+ (propagated-inputs
+ `(("python-attrs" ,python-attrs)
+ ("python-flake8" ,python-flake8)))
+ (home-page "https://github.com/PyCQA/flake8-bugbear")
+ (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.")
+ (license license:expat)))
+
(define-public python-flake8-polyfill
(package
(name "python-flake8-polyfill")
--
2.27.0
- [bug#42465] [PATCH v2 10/10] gnu: Add python-mypy., (continued)
- [bug#42465] [PATCH v3 1/9] gnu: Add python-mypy-extensions., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 2/9] gnu: Add python-typing-inspect., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 3/9] gnu: Add python-hypothesis-5.23., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 4/9] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 9/9] gnu: Add python-mypy., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 6/9] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 5/9] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear.,
Tanguy Le Carrour <=