guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

245/474: gnu: nikola: Fix build.


From: guix-commits
Subject: 245/474: gnu: nikola: Fix build.
Date: Sat, 30 Nov 2024 18:20:29 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit c792d30b1c5005fb4d8a49d35d3e8f57bc3005ab
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Nov 5 20:17:18 2024 +0000

    gnu: nikola: Fix build.
    
    * gnu/packages/python-xyz.scm (nikola): Fix build.
    [build-system]: Swap to pyproject-build-system.
    [arguments]<phases>: Use default check phase. Keep all tests.
    [native-inputs]: Remove python-coverage and python-flake8; add
    nss-certs-for-test, python-setuptools, and python-wheel.
    
    Change-Id: I74a754ce9f3b2fc4400c4f92ec976a6815cdb511
---
 gnu/packages/python-xyz.scm | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e0dfd7a128..e3375d44e6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36478,7 +36478,14 @@ these linters: @code{pycodestlye}, @code{pyflakes}")
         (uri (pypi-uri "Nikola" version))
         (sha256
           (base32 "1h96y4sfypp2fbqxa8xrqch5f7r3srm2ly222k9w2n143h2spx4m"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
+    (native-inputs
+      (list nss-certs-for-test
+            python-freezegun
+            python-pytest
+            python-pytest-cov
+            python-setuptools
+            python-wheel))
     (propagated-inputs
       (list python-babel
             python-blinker
@@ -36501,21 +36508,6 @@ these linters: @code{pycodestlye}, @code{pyflakes}")
             python-toml
             python-unidecode
             python-yapsy))
-    (native-inputs
-      (list python-coverage
-            python-flake8
-            python-freezegun
-            python-pytest
-            python-pytest-cov))
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (invoke "pytest" "tests" "--no-cov"
-                        "-k" "not test_compiling_markdown[hilite]")))))))
     (home-page "https://getnikola.com/";)
     (synopsis "Modular, fast and simple static website and blog generator")
     (description "Nikola generates static websites and blogs.  Out of the box,



reply via email to

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