[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/150: gnu: python-flit: Inherit from python-flit-core.
From: |
guix-commits |
Subject: |
09/150: gnu: python-flit: Inherit from python-flit-core. |
Date: |
Sun, 24 Apr 2022 05:12:15 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit b3fdde923d52e8a746249b208862d13485aebbdd
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sat Dec 4 09:01:10 2021 +0100
gnu: python-flit: Inherit from python-flit-core.
* gnu/packages/python-xyz.scm (python-flit): Inherit from python-flit-core.
---
gnu/packages/python-xyz.scm | 75 ++++++++++++++++++---------------------------
1 file changed, 30 insertions(+), 45 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c300e973c5..447567f51a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24933,54 +24933,39 @@ the syntactic logic to configure and launch jobs in
an execution environment.")
(define-public python-flit
(package
+ (inherit python-flit-core)
(name "python-flit")
- (version "3.5.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "flit" version))
- (sha256
- (base32 "04152qj46sqbnlrj7ch9p7svjrrlpzbk0qr39g2yr0s4f5vp6frf"))))
- (build-system python-build-system)
(arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- ;; XXX: PEP 517 manual build copied from python-isort.
- (replace 'build
- (lambda _
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (setenv "HOME" "/tmp")
- (setenv "FLIT_NO_NETWORK" "1"))))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl)))))))
- (propagated-inputs
- (list python-pypa-build
- python-tomli-w
- python-flit-core
- python-docutils
- python-requests))
+ ;; These tests require network access.
+ `(#:test-flags '("-vv" "-k" "not test_invalid_classifier and \
+not test_install_requires and not test_install_requires_extra and \
+not test_validate_classifiers_private")
+ ,@(substitute-keyword-arguments (package-arguments python-flit-core)
+ ((#:tests? tests) #t)
+ ((#:build-backend build-backend) #f)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'disable-networking
+ (lambda _
+ (setenv "FLIT_NO_NETWORK" "1")))
+ (delete 'chdir))))))
(native-inputs
- (list python-responses
- python-pygments-github-lexers
- python-pytest
- python-pytest-cov
- python-sphinx
- python-sphinxcontrib-github-alt
- python-testpath))
- (home-page "https://flit.readthedocs.io/")
- (synopsis "Simple packaging tool for simple packages")
- (description "Flit is a simple way to put Python packages and modules on
-PyPI. Flit packages a single importable module or package at a time, using
-the import name as the name on PyPI. All subpackages and data files within a
-package are included automatically.")
- (license license:bsd-3)))
+ `(("python-flit-core" ,python-flit-core)
+ ("python-pytest" ,python-pytest)
+ ("python-testpath" ,python-testpath)
+ ("python-responses" ,python-responses)))
+ (propagated-inputs
+ `(("python-tomli" ,python-tomli)
+ ("python-tomli-w" ,python-tomli-w)
+ ("python-requests" ,python-requests)
+ ("python-docutils" ,python-docutils)))
+ (synopsis
+ "Simple packaging tool for simple packages")
+ (description
+ "Flit is a simple way to put Python packages and modules on PyPI. Flit
+packages a single importable module or package at a time, using the import
+name as the name on PyPI. All subpackages and data files within a package
+are included automatically.")))
(define-public python-pathtools
(package
- 136/150: gnu: python-ilinkedlist: Disable tests., (continued)
- 136/150: gnu: python-ilinkedlist: Disable tests., guix-commits, 2022/04/24
- 143/150: gnu: python-libsass: Fix 'sanity-check phase., guix-commits, 2022/04/24
- 137/150: gnu: python-importmagic: Add missing test input., guix-commits, 2022/04/24
- 139/150: gnu: python-jinja2-cli: Disable tests., guix-commits, 2022/04/24
- 140/150: gnu: python-jupyter-packaging: Disable failing tests., guix-commits, 2022/04/24
- 145/150: gnu: python-lunr: Disable tests., guix-commits, 2022/04/24
- 146/150: gnu: meson: Match shebang instead of setuptools-specific line., guix-commits, 2022/04/24
- 148/150: gnu: python-parsedatetime: Explicit test-backend., guix-commits, 2022/04/24
- 03/150: python-build-system: Use PEP 517-compatible builds., guix-commits, 2022/04/24
- 17/150: gnu: python-testpath: Remove custom build phases., guix-commits, 2022/04/24
- 09/150: gnu: python-flit: Inherit from python-flit-core.,
guix-commits <=
- 35/150: gnu: python-urwidtrees: Remove dependency on mock., guix-commits, 2022/04/24
- 52/150: gnu: python-pytest-xvfb: Remove obsolete test target., guix-commits, 2022/04/24
- 50/150: gnu: python-pytest-benchmark: Disable tests., guix-commits, 2022/04/24
- 53/150: gnu: python-pytest-qt: Remove obsolete test target., guix-commits, 2022/04/24
- 51/150: gnu: python-entrypoint2: Remove obsolete test target., guix-commits, 2022/04/24
- 57/150: gnu: python-argon2-cffi: Do not override 'build., guix-commits, 2022/04/24
- 69/150: gnu: python-three-merge: Remove obsolete argument., guix-commits, 2022/04/24
- 64/150: gnu: python-pyls-black: Remove obsolete argument., guix-commits, 2022/04/24
- 85/150: gnu: python-libxml2: Fix build., guix-commits, 2022/04/24
- 83/150: gnu: python-gssapi: Disable tests., guix-commits, 2022/04/24