unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42560] [PATCH] gnu: Add python-libsass.
@ 2020-07-27 14:44 Vinicius Monego
  2020-07-29  5:12 ` bug#42560: " Oleg Pykhalov
  0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Monego @ 2020-07-27 14:44 UTC (permalink / raw)
  To: 42560; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#42560: [PATCH] gnu: Add python-libsass.
  2020-07-27 14:44 [bug#42560] [PATCH] gnu: Add python-libsass Vinicius Monego
@ 2020-07-29  5:12 ` Oleg Pykhalov
  0 siblings, 0 replies; 2+ messages in thread
From: Oleg Pykhalov @ 2020-07-29  5:12 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42560-done

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-29  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-27 14:44 [bug#42560] [PATCH] gnu: Add python-libsass Vinicius Monego
2020-07-29  5:12 ` bug#42560: " Oleg Pykhalov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).