mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add python-pytest-isort.
* gnu/packages/python-check.scm (python-pytest-isort): New variable.
This commit is contained in:
parent
0201e34cef
commit
c1ff9072de
1 changed files with 31 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
|
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -153,6 +154,36 @@ (define-public python-pytest-flake8
|
||||||
compliance.")
|
compliance.")
|
||||||
(license license:bsd-3)))
|
(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
|
(define-public python-pytest-shutil
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-shutil")
|
(name "python-pytest-shutil")
|
||||||
|
|
Loading…
Reference in a new issue