[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
74/103: gnu: python-entrypoints: Fix build and enable tests.
From: |
guix-commits |
Subject: |
74/103: gnu: python-entrypoints: Fix build and enable tests. |
Date: |
Wed, 5 Jan 2022 09:44:38 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 993265273681c9471315f09fb2c7d411b60d8bb6
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 f2e3bc48b6..c7b27cd1a6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11852,20 +11852,11 @@ Jupyter Notebook format and Python APIs for working
with notebooks.")
(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
- 46/103: gnu: python-pytest-remotedata: Disable tests., (continued)
- 46/103: gnu: python-pytest-remotedata: Disable tests., guix-commits, 2022/01/05
- 50/103: gnu: python-pytest-qt: Remove obsolete test target., guix-commits, 2022/01/05
- 51/103: gnu: Add python-u-msgpack., guix-commits, 2022/01/05
- 57/103: gnu: python-pastedeploy: Remove obsolete argument., guix-commits, 2022/01/05
- 60/103: gnu: python-hupper: Remove obsolete argument., guix-commits, 2022/01/05
- 61/103: gnu: python-pyls-black: Remove obsolete argument., guix-commits, 2022/01/05
- 62/103: gnu: scons: Remove obsolete argument., guix-commits, 2022/01/05
- 63/103: gnu: python-virtualenv: Disable tests., guix-commits, 2022/01/05
- 66/103: gnu: python-three-merge: Remove obsolete argument., guix-commits, 2022/01/05
- 68/103: gnu: python-flake8-pie: Fix build., guix-commits, 2022/01/05
- 74/103: gnu: python-entrypoints: Fix build and enable tests.,
guix-commits <=
- 77/103: gnu: python-qstylizer: Remove obsolete argument., guix-commits, 2022/01/05
- 93/103: gnu: python-pytest-httpbin: Disable tests., guix-commits, 2022/01/05
- 92/103: gnu: python-cairocffi: Disable tests., guix-commits, 2022/01/05
- 95/103: gnu: python-progressbar2: Disable tests., guix-commits, 2022/01/05
- 96/103: gnu: python-click-5: Disable failing test., guix-commits, 2022/01/05
- 98/103: gnu: btrfs-progs: Add missing input., guix-commits, 2022/01/05
- 102/103: gnu: tensorflow: Add missing module., guix-commits, 2022/01/05
- 101/103: gnu: Add missing module import., guix-commits, 2022/01/05
- 32/103: gnu: python-urwidtrees: Remove dependency on mock., guix-commits, 2022/01/05
- 34/103: gnu: python-pycosat: Run tests., guix-commits, 2022/01/05