From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 57094@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#57094] [PATCH 7/9] gnu: Add python-nox.
Date: Wed, 10 Aug 2022 00:43:31 +0200 [thread overview]
Message-ID: <20220809224333.28437-7-ngraves@ngraves.fr> (raw)
In-Reply-To: <20220809224333.28437-1-ngraves@ngraves.fr>
* gnu/packages/python-check.scm (python-nox): New variable.
---
gnu/packages/python-check.scm | 51 +++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index af0e5be28b..20ab26facf 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -107,6 +107,57 @@ (define-public python-beartype
written in pure Python.")
(license license:expat)))
+(define-public python-nox
+ (package
+ (name "python-nox")
+ (version "2022.1.7")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "nox" version))
+ (sha256
+ (base32
+ "0zkxv7y5952kizri6bnac3gq1kah3b7d1f3lmcpxzfdhxf626xdk"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-argcomplete
+ python-colorlog
+ python-importlib-metadata
+ python-packaging
+ python-py
+ python-typing-extensions
+ python-virtualenv))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: PEP 517 manual build/install procedures copied from
+ ;; python-isort.
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs
+ (list python-pypa-build
+ python-pytest
+ python-jinja2
+ python-tox))
+ (home-page "https://nox.thea.codes")
+ (synopsis "Flexible python test automation")
+ (description
+ "This package provides @code{nox}, a command-line tool that automates
+testing in multiple Python environments, similar to @code{tox}. Unlike
+@code{tox}, @code{nox} uses a standard Python file for configuration.")
+ (license license:asl2.0)))
+
(define-public python-pytest-click
(package
(name "python-pytest-click")
--
2.37.1
next prev parent reply other threads:[~2022-08-09 22:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 22:37 [bug#57094] Updating wagtail to 3.0 Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 1/9] gnu: python-django-modelcluster: Update to 6.0 Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 2/9] gnu: Add python-django-permissionedforms Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 3/9] gnu: Add python-curlylint Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 4/9] gnu: Add python-flake8-assertive Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 5/9] gnu: Add python-flake8-comprehensions Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 6/9] gnu: Add python-django-pattern-library Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` Nicolas Graves via Guix-patches via [this message]
2022-08-09 22:43 ` [bug#57094] [PATCH 8/9] gnu: Add python-djhtml Nicolas Graves via Guix-patches via
2022-08-09 22:43 ` [bug#57094] [PATCH 9/9] gnu: python-wagtail: Update to 3.0.1 Nicolas Graves via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220809224333.28437-7-ngraves@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=57094@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.