diff mbox series

[bug#53190,3/5] gnu: Add python-flake8-imports.

Message ID 20220111162518.47475-3-monego@posteo.net
State New
Headers show
Series Add python-zeep. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Vinicius Monego Jan. 11, 2022, 4:25 p.m. UTC
* gnu/packages/python-xyz.scm (python-flake8-imports): New variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ded88efc88..d1127a072d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10158,6 +10158,32 @@  the same line (which can be introduced by the code formatting tool Black), or
 unnecessary plus operators for explicit string literal concatenation.")
     (license license:expat)))
 
+(define-public python-flake8-imports
+  (package
+    (name "python-flake8-imports")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "flake8_imports" version))
+       (sha256
+        (base32 "1m3b7j7fp3zbx2ayq318003dbx549b1fa4shas6g1bv566yz246k"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f                      ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         ;; This package is technically compatible with isort < 5, but we only
+         ;; have isort >= 5.
+         (delete 'sanity-check))))
+    (propagated-inputs
+     (list python-flake8 python-isort))
+    ;; Homepage in PyPI doesn't exist, the package is abandoned.
+    (home-page "https://pypi.org/project/flake8-imports/")
+    (synopsis "Isort extension for Flake8")
+    (description "This package provides an Isort extension for Flake8.")
+    (license license:expat)))
+
 (define-public python-flake8-polyfill
   (package
     (name "python-flake8-polyfill")