emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#42560: closed ([PATCH] gnu: Add python-libsass.)


From: GNU bug Tracking System
Subject: bug#42560: closed ([PATCH] gnu: Add python-libsass.)
Date: Wed, 29 Jul 2020 05:13:02 +0000

Your message dated Wed, 29 Jul 2020 08:12:25 +0300
with message-id <87365anbuu.fsf@gmail.com>
and subject line Re: [bug#42560] [PATCH] gnu: Add python-libsass.
has caused the debbugs.gnu.org bug report #42560,
regarding [PATCH] gnu: Add python-libsass.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42560: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42560
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-libsass. Date: Mon, 27 Jul 2020 11:44:04 -0300
* gnu/packages/python-xyz.scm (python-libsass): New variable.
---
 gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 446e0a6def..d05fa4ae11 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8748,6 +8748,50 @@ specification.")
 (define-public python2-idna
   (package-with-python2 python-idna))
 
+(define-public python-libsass
+  (package
+    (name "python-libsass")
+    (version "0.20.0")
+    (source
+     (origin
+       ;; PyPI tarball is missing some test files.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sass/libsass-python";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0h9rj4k9izkfdvli8ip72bbvh6a7bvrv5pxz6zay2bq235gpfgfc"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Use Guix package of libsass instead of compiling from a checkout.
+         (add-before 'build 'set-libsass
+           (lambda _
+             (setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
+             #t))
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "sasstests.py" "-k"
+                     ;; See https://github.com/sass/libsass/issues/3092.
+                     ;; This test may work in a future release of libsass.
+                     "not test_stack_trace_formatting"))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-werkzeug" ,python-werkzeug)))
+    (inputs
+     `(("libsass" ,libsass)))
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (home-page "https://sass.github.io/libsass-python/";)
+    (synopsis "Straightforward binding of libsass for Python")
+    (description
+     "This package provides a simple Python extension module @code{sass} which
+is binding LibSass.")
+    (license license:expat)))
+
 (define-public python-idna-ssl
   (package
     (name "python-idna-ssl")
-- 
2.20.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#42560] [PATCH] gnu: Add python-libsass. Date: Wed, 29 Jul 2020 08:12:25 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Hi,

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/python-xyz.scm (python-libsass): New variable.
> ---
>  gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 44 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 446e0a6def..d05fa4ae11 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -8748,6 +8748,50 @@ specification.")

[…]

Pushed to master.

Thanks,
Oleg.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

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