From patchwork Tue Apr 20 05:22:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28698 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 CE64227BC79; Tue, 20 Apr 2021 06:26:10 +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 4165F27BC6C for ; Tue, 20 Apr 2021 06:26:10 +0100 (BST) Received: from localhost ([::1]:40696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYitl-0003Is-DK for patchwork@mira.cbaines.net; Tue, 20 Apr 2021 01:26:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYisk-0002EX-0b for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41129) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYisj-0003a1-OL for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYisj-0007fG-LI for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47906] [PATCH 09/22] gnu: Add python-tinycss. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Apr 2021 05:25:05 +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.161889628729327 (code B ref 47906); Tue, 20 Apr 2021 05:25:05 +0000 Received: (at 47906) by debbugs.gnu.org; 20 Apr 2021 05:24:47 +0000 Received: from localhost ([127.0.0.1]:52655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisK-0007ck-VT for submit@debbugs.gnu.org; Tue, 20 Apr 2021 01:24:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisJ-0007cZ-V0 for 47906@debbugs.gnu.org; Tue, 20 Apr 2021 01:24:40 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 694FE240027 for <47906@debbugs.gnu.org>; Tue, 20 Apr 2021 07:24:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618896274; bh=FviCa+CCmMHASeEt8wyRg8iyNkeCetBHsqvTtS6Z2IU=; h=From:To:Cc:Subject:Date:From; b=Ze1TSYXMGgP2dqTwK1+wL0N3ICjZSaJq4DKamvUxoD77DX+NZgcBiOKLMsANLqaum iBvqukFWDQKNiz7tcZOHOMpC4et59WOEHuMW2zdlfpdQII9/tPpokfiw84jGfHoC5X CK2gORQ/PEQbvoEegVKIHN4PWdyCAz2KXiQqV5s9TBBsSK8o0sWM+IqqgzMzwPtkr8 SIjUMZ5E/4QNdJQ/n+daPr0w2H9ItUV5uFhrz4QkAzFWwcPqx2v+c+isIE2gbr5bM7 TY1jEGNl17+EvRVc6GjbCckR19gVtoBXL/9uf/q/AwPvrNOBOgkj0nXa9UJnqb6pOu WpbQFY03JLVpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FPXDd0MCjz6tmH; Tue, 20 Apr 2021 07:24:32 +0200 (CEST) From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:33 +0000 Message-Id: <20210420052246.470690-9-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-web.scm (python-tinycss): New variable. --- This package is deprecated by the author but it's required by qstylizer. gnu/packages/python-web.scm | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 1e57165509..8b9c223a41 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -37,7 +37,7 @@ ;;; Copyright © 2020 Holger Peters ;;; Copyright © 2020 Noisytoot ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2021 Ekaitz Zarraga @@ -4557,6 +4557,49 @@ library to create slugs from unicode strings while keeping it DRY.") (description "Generate complex HTML+JS pages with Python") (license license:expat))) +(define-public python-tinycss + (package + (name "python-tinycss") + (version "0.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tinycss" version)) + (sha256 + (base32 "0vkifr595h28ymkjhrswwf0bm23lhznh5f44xyp7x7jy1ssnyc0j")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-flake8-isort + ;; Flake8 and isort tests fail. + (lambda _ + (substitute* "setup.cfg" ((" --flake8 --isort") "")) + #t)) + (replace 'check + (lambda _ + ;; Disable failing test. + (invoke "python" "-m" "pytest" "-k" + "not test_speedups")))))) + (native-inputs + `(("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-flake8" ,python-pytest-flake8) + ("python-pytest-isort" ,python-pytest-isort) + ("python-pytest-runner" ,python-pytest-runner))) + (home-page "https://tinycss.readthedocs.io/") + (synopsis "Complete yet simple CSS parser for Python") + (description + "@code{tinycss} is a complete yet simple CSS parser for Python. It +supports the full syntax and error handling for CSS 2.1 as well as some CSS 3 +modules: + +@itemize +@item CSS Color 3 +@item CSS Fonts 3 +@item CSS Paged Media 3 +@end itemize") + (license license:bsd-3))) + (define-public python-tinycss2 (package (name "python-tinycss2")