From patchwork Tue Apr 20 05:22:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28699 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 2261F27BC6C; Tue, 20 Apr 2021 06:26:11 +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_H4,RCVD_IN_MSPIKE_WL,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 9CE4D27BC77 for ; Tue, 20 Apr 2021 06:26:10 +0100 (BST) Received: from localhost ([::1]:40700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYitl-0003J0-Qf for patchwork@mira.cbaines.net; Tue, 20 Apr 2021 01:26:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYite-0003Hx-2A for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYitd-0004Eg-Ps for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYitd-0007jT-MT for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47906] [PATCH 14/22] gnu: Add python-qtsass. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Apr 2021 05:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47906 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47906@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47906-submit@debbugs.gnu.org id=B47906.161889630929529 (code B ref 47906); Tue, 20 Apr 2021 05:26:01 +0000 Received: (at 47906) by debbugs.gnu.org; 20 Apr 2021 05:25:09 +0000 Received: from localhost ([127.0.0.1]:52683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisn-0007gD-CQ for submit@debbugs.gnu.org; Tue, 20 Apr 2021 01:25:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisl-0007e7-KN for 47906@debbugs.gnu.org; Tue, 20 Apr 2021 01:25:07 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 1B204240026 for <47906@debbugs.gnu.org>; Tue, 20 Apr 2021 07:25:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618896302; bh=I0vY40cEt0x9rSwoZhSVbFYsbKt1FZq/97ktmr3Rb+A=; h=From:To:Cc:Subject:Date:From; b=gBDvC2QZpLOjyD0SZvwWpW2v2mo+rjcnW8wTfnaplGQ+Xyr1j6MLK0tnAPVXGR4EO 7l57JcbBIsy6AraOiQDvIGY7Dd8tJCXGInP2mdV/7cGZ2LItZePMBZ9OkxecmYDfHV fBpXv+NDSy1zUAxi4HC7rDqE2mUyfMsurfehq9KtQyagQILpHb2NK7Jm6CDvke8nLi hVaFg7Wol9dd4B1dbOd0ex/OeH1J2mMNkT1tp80Pu/45iOgq9Fg6Z+TSnM2kmh0ZkC aeZhd1Mn+dUfJD52EIk9JgwseCpEKpswKoie81eNQ2aiNR4Jpeopk2XtlqbgI9rTJt FrFiOzuTZKtjQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FPXF85rTSz6tmM; Tue, 20 Apr 2021 07:25:00 +0200 (CEST) From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:38 +0000 Message-Id: <20210420052246.470690-14-monego@posteo.net> In-Reply-To: <20210420052246.470690-1-monego@posteo.net> References: <20210420052246.470690-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-xyz.scm (python-qtsass): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5c7fd02289..28c89f71a1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24409,6 +24409,47 @@ query Watchman to discover file changes.") environment.") (license license:expat))) +(define-public python-qtsass + (package + (name "python-qtsass") + (version "0.3.0") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/spyder-ide/qtsass/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09s04aa14d8jqbh71clrb5y7vcmkxlp94mwmvzrkxahry3bk03cb")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + ;; Tests need to read and write files. + (add-before 'check 'make-git-checkout-writable + (lambda _ + (for-each make-file-writable (find-files ".")) + #t))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-runner" ,python-pytest-runner))) + (propagated-inputs + `(("python-libsass" ,python-libsass))) + (home-page "https://github.com/spyder-ide/qtsass") + (synopsis "Compile SCSS files to valid Qt stylesheets") + (description + "Besides being used in web development, CSS is also the way to stylize +Qt-based desktop applications. However, Qt's CSS has a few variations that +prevent the direct use of SASS compiler. + +The purpose of this tool is to fill the gap between SASS and Qt-CSS by +handling those variations.") + (license license:expat))) + (define-public python-qdarkstyle (package (name "python-qdarkstyle")