lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 807b0ba54656a3a8ce8482ef20e12322533f31f0
Author: Lars-Dominik Braun <[email protected]>
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