[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
74/150: gnu: python-entrypoints: Fix build and enable tests.
From: |
guix-commits |
Subject: |
74/150: gnu: python-entrypoints: Fix build and enable tests. |
Date: |
Sun, 24 Apr 2022 05:12:25 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 807b0ba54656a3a8ce8482ef20e12322533f31f0
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Dec 31 14:30:08 2021 +0100
gnu: python-entrypoints: Fix build and enable tests.
* gnu/packages/python-xyz.scm (python-entrypoints)[arguments]: Remove
custom #:phase and override build backend.
[native-inputs]: Add python-flit-core and python-pytest.
---
gnu/packages/python-xyz.scm | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ba970dad8e..a75c8494a4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12782,20 +12782,11 @@ systems, as a command line tool, and as a Python
library.")
(base32
"0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
(build-system python-build-system)
- ;; The package does not come with a setup.py file, so we have to generate
- ;; one ourselves.
(arguments
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'create-setup.py
- (lambda _
- (call-with-output-file "setup.py"
- (lambda (port)
- (format port "\
-from setuptools import setup
-setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
-" ,version))))))))
+ `(;; The project uses an old entrypoint, which pulls in the entire flit
+ ;; project. flit_core is sufficient to build though.
+ #:build-backend "flit_core.buildapi"))
+ (native-inputs (list python-flit-core python-pytest))
(home-page "https://github.com/takluyver/entrypoints")
(synopsis "Discover and load entry points from installed Python packages")
(description "Entry points are a way for Python packages to advertise
- 39/150: gnu: python-rencode: Disable tests., (continued)
- 39/150: gnu: python-rencode: Disable tests., guix-commits, 2022/04/24
- 37/150: gnu: python-pycosat: Run tests., guix-commits, 2022/04/24
- 40/150: gnu: duplicity: Remove obsolete test target., guix-commits, 2022/04/24
- 45/150: gnu: epour: Remove old build flag., guix-commits, 2022/04/24
- 62/150: gnu: python-venusian: Remove obsolete argument., guix-commits, 2022/04/24
- 47/150: gnu: Add missing #:use-module., guix-commits, 2022/04/24
- 49/150: gnu: python-pytest-remotedata: Disable tests., guix-commits, 2022/04/24
- 58/150: gnu: python-html5lib: Enable tests., guix-commits, 2022/04/24
- 82/150: gnu: python-yamllint: Remove redundant input., guix-commits, 2022/04/24
- 72/150: gnu: python-pep517: Reset timestamps and add missing build input., guix-commits, 2022/04/24
- 74/150: gnu: python-entrypoints: Fix build and enable tests.,
guix-commits <=
- 84/150: gnu: python-eliot: Remove redundant input., guix-commits, 2022/04/24
- 88/150: gnu: python-cairocffi: Disable tests., guix-commits, 2022/04/24
- 78/150: gnu: python-apipkg: Disable tests., guix-commits, 2022/04/24
- 80/150: gnu: python-isort: Remove custom build phases., guix-commits, 2022/04/24
- 93/150: gnu: python-dnaio: Disable tests., guix-commits, 2022/04/24
- 91/150: gnu: python-progressbar2: Disable tests., guix-commits, 2022/04/24
- 65/150: gnu: scons: Remove obsolete argument., guix-commits, 2022/04/24
- 100/150: gnu: Remove remaining uses of #:test-target for python-build-system., guix-commits, 2022/04/24
- 107/150: gnu: python-capablerobot-usbhub: Build using python-poetry-core., guix-commits, 2022/04/24
- 115/150: gnu: python-clikit: Add missing build input., guix-commits, 2022/04/24