diff options
| author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2019-09-30 21:00:28 +0200 |
|---|---|---|
| committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2019-10-22 16:58:29 +0200 |
| commit | c1ff9072de7738feb5af5274d7c478f1efef0f09 (patch) | |
| tree | af785b431007734d1af778cdd66811a369c1bdb8 /gnu/packages/python-check.scm | |
| parent | 0201e34cef3cc908e40f54818c8228fa8e786676 (diff) | |
gnu: Add python-pytest-isort.
* gnu/packages/python-check.scm (python-pytest-isort): New variable.
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 15cf9138d4f..caa398752e3 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> | 3 | ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
| 4 | ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il> | 4 | ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il> |
| 5 | ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 5 | ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 6 | ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com> | ||
| 6 | ;;; | 7 | ;;; |
| 7 | ;;; This file is part of GNU Guix. | 8 | ;;; This file is part of GNU Guix. |
| 8 | ;;; | 9 | ;;; |
| @@ -153,6 +154,36 @@ of the project to ensure it renders properly.") | |||
| 153 | compliance.") | 154 | compliance.") |
| 154 | (license license:bsd-3))) | 155 | (license license:bsd-3))) |
| 155 | 156 | ||
| 157 | (define-public python-pytest-isort | ||
| 158 | (package | ||
| 159 | (name "python-pytest-isort") | ||
| 160 | (version "0.3.1") | ||
| 161 | (source | ||
| 162 | (origin | ||
| 163 | (method url-fetch) | ||
| 164 | (uri (pypi-uri "pytest-isort" version)) | ||
| 165 | (sha256 | ||
| 166 | (base32 "06myn5hhxs5yp8dqr1yjsgcnnxnsrvsqannm00bvaw0qml6ydzjb")))) | ||
| 167 | (build-system python-build-system) | ||
| 168 | (arguments | ||
| 169 | `(#:phases | ||
| 170 | (modify-phases %standard-phases | ||
| 171 | (replace 'check | ||
| 172 | (lambda _ | ||
| 173 | (setenv "PYTHONPATH" | ||
| 174 | (string-append (getcwd) ":" | ||
| 175 | (getenv "PYTHONPATH"))) | ||
| 176 | (invoke "pytest")))))) | ||
| 177 | (propagated-inputs | ||
| 178 | `(("python-isort" ,python-isort) | ||
| 179 | ("python-pytest" ,python-pytest))) | ||
| 180 | (home-page "https://github.com/moccu/pytest-isort/") | ||
| 181 | (synopsis "Pytest plugin to check import ordering using isort") | ||
| 182 | (description | ||
| 183 | "This package provides a pytest plugin to check import ordering using | ||
| 184 | isort.") | ||
| 185 | (license license:bsd-3))) | ||
| 186 | |||
| 156 | (define-public python-pytest-shutil | 187 | (define-public python-pytest-shutil |
| 157 | (package | 188 | (package |
| 158 | (name "python-pytest-shutil") | 189 | (name "python-pytest-shutil") |
