guix-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]