[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/16: gnu: python-libsass: Fix build.
From: |
guix-commits |
Subject: |
11/16: gnu: python-libsass: Fix build. |
Date: |
Thu, 3 Feb 2022 17:44:58 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit a5eb5dd57162ee4fc662494b566d0a3c1e515e92
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Feb 3 19:05:56 2022 +0100
gnu: python-libsass: Fix build.
* gnu/packages/python-xyz.scm (python-libsass)[arguments]: Add phase to
appease sanity check. While here, make tests conditional and remove
trailing #t.
---
gnu/packages/python-xyz.scm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 01c9ea3cf1..7493379cb6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12083,9 +12083,21 @@ specification.")
(setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
#t))
(replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "sasstests.py"))))
+ (add-after 'install 'delete-test
(lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "sasstests.py"))))))
+ ;; Delete sasstests.py because it attempts to open a file
+ ;; that is not installed when loaded, which breaks the sanity
+ ;; check.
+ (delete-file (string-append
+ (assoc-ref outputs "out")
+ "/lib/python"
+ (python-version
+ (dirname (dirname
+ (search-input-file inputs
"bin/python"))))
+ "/site-packages/sasstests.py")))))))
(native-inputs
(list python-pytest python-werkzeug))
(inputs
- 04/16: gnu: python-febelfin-coda: Update to 0.2.0., (continued)
- 04/16: gnu: python-febelfin-coda: Update to 0.2.0., guix-commits, 2022/02/03
- 06/16: gnu: python-django@3: Update to 3.2.12 [fixes CVE-2022-22818, CVE-2022-23833]., guix-commits, 2022/02/03
- 02/16: gnu: LLVM: Update to 13.0.1., guix-commits, 2022/02/03
- 01/16: gnu: LLVM: Add release-monitoring-url., guix-commits, 2022/02/03
- 07/16: gnu: python-django@2: Update to 2.2.27 [fixes CVE-2022-22818, CVE-2022-23833]., guix-commits, 2022/02/03
- 08/16: gnu: pegtl: Update to 3.2.2., guix-commits, 2022/02/03
- 05/16: gnu: python-django: Update to 4.0.2 [fixes CVE-2022-22818, CVE-2022-23833]., guix-commits, 2022/02/03
- 10/16: gnu: usbguard: Remove input labels., guix-commits, 2022/02/03
- 03/16: gnu: python-can: Update to 3.3.4., guix-commits, 2022/02/03
- 09/16: gnu: usbguard: Update to 1.0.0-55-g466f1f0., guix-commits, 2022/02/03
- 11/16: gnu: python-libsass: Fix build.,
guix-commits <=
- 14/16: gnu: Add perl-date-range., guix-commits, 2022/02/03
- 15/16: gnu: python-translate-toolkit: Disable sanity check., guix-commits, 2022/02/03
- 13/16: gnu: b4: Fix build failure., guix-commits, 2022/02/03
- 16/16: gnu: strongswan: Build with libsoup@2., guix-commits, 2022/02/03
- 12/16: gnu: python-libsass: Remove label usage., guix-commits, 2022/02/03