[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#37617] [PATCH 1/6] gnu: Add python-pytest-isort.
From: |
Hartmut Goebel |
Subject: |
[bug#37617] [PATCH 1/6] gnu: Add python-pytest-isort. |
Date: |
Fri, 4 Oct 2019 13:08:19 +0200 |
* gnu/packages/python-check.scm (python-pytest-isort): New variable.
---
gnu/packages/python-check.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b8aaef9b77..362f548c02 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2019 Efraim Flashner <address@hidden>
;;; Copyright © 2019 Maxim Cournoyer <address@hidden>
+;;; Copyright © 2019 Hartmut Goebel <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -153,6 +154,36 @@ of the project to ensure it renders properly.")
compliance.")
(license license:bsd-3)))
+(define-public python-pytest-isort
+ (package
+ (name "python-pytest-isort")
+ (version "0.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-isort" version))
+ (sha256
+ (base32 "06myn5hhxs5yp8dqr1yjsgcnnxnsrvsqannm00bvaw0qml6ydzjb"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest"))))))
+ (propagated-inputs
+ `(("python-isort" ,python-isort)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/moccu/pytest-isort/")
+ (synopsis "Pytest plugin to check import ordering using isort")
+ (description
+ "This package provides a pytest plugin to check import ordering using
+isort.")
+ (license license:bsd-3)))
+
(define-public python-pytest-shutil
(package
(name "python-pytest-shutil")
--
2.21.0
- [bug#37617] [PATCH 0/6] Add weasyprint and dependencies., Hartmut Goebel, 2019/10/04
- [bug#37617] [PATCH 1/6] gnu: Add python-pytest-isort.,
Hartmut Goebel <=
- [bug#37617] [PATCH 5/6] gnu: Add python-pyphen., Hartmut Goebel, 2019/10/04
- [bug#37617] [PATCH 3/6] gnu: Add python-cssselect2., Hartmut Goebel, 2019/10/04
- [bug#37617] [PATCH 2/6] gnu: Add python-tinycss2., Hartmut Goebel, 2019/10/04
- [bug#37617] [PATCH 6/6] gnu: Add weasyprint., Hartmut Goebel, 2019/10/04
- [bug#37617] [PATCH 4/6] gnu: Add python-cairosvg., Hartmut Goebel, 2019/10/04
- Message not available