From patchwork Thu Oct 21 04:01:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33972 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F183627BBE1; Thu, 21 Oct 2021 05:04:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ED88227BBE4 for ; Thu, 21 Oct 2021 05:04:28 +0100 (BST) Received: from localhost ([::1]:40250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPJc-0003Kb-1C for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 00:04:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPJD-0003IS-59 for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPJC-0000KI-SF for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPJC-0005dl-Ok for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 09/29] gnu: Add python-pyscss. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.163478899521457 (code B ref 51314); Thu, 21 Oct 2021 04:04:02 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:03:15 +0000 Received: from localhost ([127.0.0.1]:55940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIQ-0005a1-MV for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIO-0005ZR-DF for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:12 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7D03D24010A for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634788986; bh=czOHsXw3C9N+x+XhCr0xiqGx7YcgcFayN6uo8opnIcM=; h=From:To:Cc:Subject:Date:From; b=UrncE7+XKuJ4dSyHT1uD+fz9tr4FFwpFGo2xa5nZrcvpWi/LKrkB0fJ3yotmFYqEO ot4lVVOtygHp9nwSElOJ++Y3d/AMZrszIGbwhGhapQgHCensh85YHFfAQ7LF/sZ+vG zllYBSVLQQKtRDeeQ9O/zgesPwfShaC7ZFEGFuBFiSbcenRf40/U16KPh7gRo8lUG9 nRoU1yKAzt7cvd8dgWh/iunSSDlSk5tYxisq2awQ0M42of5RZUqNbf4d3umhrQI2SB 8wwwdqgq3mlhrvKKMa6kysZbbkNmwnn42Gx7y79vi+PcL3npWkDi3vBCof4m1Mf0Aq bIRzaE7wlZKIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYjj4K2bz9rxN; Thu, 21 Oct 2021 06:03:05 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:40 +0000 Message-Id: <20211021040200.241873-5-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-pyscss): New variable. --- gnu/packages/python-web.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8dd3345daf..f9401cceb3 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -77,6 +77,7 @@ #:use-module (gnu packages groff) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) + #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -773,6 +774,40 @@ JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign content using a variety of algorithms.") (license license:expat))) +(define-public python-pyscss + (package + (name "python-pyscss") + (version "1.3.7") + (source + (origin + ;; No tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/Kronuz/pyScss") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0701hziiiw67blafgpmjhzspmrss8mfvif7fw0rs8fikddwwc9g6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "--pyargs" "scss"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (inputs + `(("pcre" ,pcre))) + (home-page "https://github.com/Kronuz/pyScss") + (synopsis "Scss compiler for Python") + (description "@code{pyScss} is a compiler for Sass, a superset language of +CSS3 that adds programming capabilities and some other syntactic sugar.") + (license license:expat))) + (define-public python-jsonpickle (package (name "python-jsonpickle")