From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oCuVF2KqfWHeTgAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 22:26:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +NRCE2KqfWEzSgAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 20:26:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 215D4202D6 for ; Sat, 30 Oct 2021 22:26:10 +0200 (CEST) Received: from localhost ([::1]:38052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mguvY-0001UL-U7 for larch@yhetil.org; Sat, 30 Oct 2021 16:26:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mguvS-0001U4-3G for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mguvR-0005dw-R9 for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mguvR-0001DN-O5 for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51520] [PATCH 1/3] gnu: Add python-webcolors. References: <20211030202149.18310-1-arunisaac@systemreboot.net> In-Reply-To: <20211030202149.18310-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 20:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51520 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51520@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 51520-submit@debbugs.gnu.org id=B51520.16356255214602 (code B ref 51520); Sat, 30 Oct 2021 20:26:01 +0000 Received: (at 51520) by debbugs.gnu.org; 30 Oct 2021 20:25:21 +0000 Received: from localhost ([127.0.0.1]:58503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mguum-0001C9-Um for submit@debbugs.gnu.org; Sat, 30 Oct 2021 16:25:21 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:54818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mguuk-0001Bn-Jc for 51520@debbugs.gnu.org; Sat, 30 Oct 2021 16:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kyid3cYg7ZmQIVBMSAH4NWO4sodTBV2t8uKEdgEXjg8=; b=pDzeuThypX2DkUrHBKkiRDCToj rYZ+s4kbufk+NWWd8dN12EZKwkjB8AkEYo4Db9LrhKfxktMdZWt+xy45NjVtNI8jz/9x5ph7yLu6m MRYc1OLhzdOlEy0uDdLR5HmJIGAaUlc4NDOdFjvhgDTZmg65zjvzIcS57CmNaveFC1QdANu283DcD hjD2v3ELlB7kxQB/x+GI2Zbq4Hg7Wq8a5DhGKE26heTCpNlsUFiTJSuMMYYc0H0Bd3Zu+ywUzVxis GVv6TfXnguaV2ZESa1VYFUaJQWFkNUo2iHB5GAGgbkBKrQTsnLzxLhIst5+VEbPTSlo3AN92gfGsH e9edK7Tw==; Received: from [192.168.2.1] (port=59960 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1mguui-0003Cr-0C; Sun, 31 Oct 2021 01:55:16 +0530 From: Arun Isaac Date: Sun, 31 Oct 2021 01:55:12 +0530 Message-Id: <20211030202514.18639-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635625570; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kyid3cYg7ZmQIVBMSAH4NWO4sodTBV2t8uKEdgEXjg8=; b=MgqLCy+Hp5jUK9CMXZTFPrkFaXAVCqKoO4Kp3E6v+e6NCeSX1nCffZza2y0AoiwhOrlPhP KMAVmJModjj5nT0QZ4s/OCXqw9+cVAA+bFD+Q93Xrdwf+AN8mRUFD1gmXYfLPItPYIOKy0 0qP3ES4ov7gip6cS05EZFP6e5Dj8qWfgsldmmMIelH6mySJEhSg5gG3vi5N4R9Ea3dk+rz WDVn/TUZkPXBGA9E86RvWgWcSVhgxVGQGV8jXdhV55acKLW3PR5w41auDuokzJQYe9D0ux GcUnjvLMtaO4zmlayl7KzwCpBbLegUCqpHn0/gXcmd/PH1nQmbTbqUULIUB6cQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635625570; a=rsa-sha256; cv=none; b=XpmkUWjl1fcA4/erOtlXhcGUVdF+uK7PhtrzDuhNqR70NxfiZiHpzZIYEyXpEnh+1iKDfG C2aOy8MQmSrhBtpMFeBfe+gaFsSP0iRDphNF/7lmajnUW58yfLCFMvV8Ent2mc4mmGYlML cBKwAqiEfhBZxWwrq0UGkSHOqAY8AwOlNIO07pUaHwHEDwnMwJay2BPETQIgIGz2zLGx87 vfXPlC2Hsc9IxtlgKugWaVyQEEInEg5F7iwQHGXw8B6IbZ03nSrN8jGJoXfPxeNA1vbZpv jFpztRiSE3IyVViZmiKoaDYgXI7B6j4k8N99sc7HyieInjbslUhshsf5tgATsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=pDzeuThy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=pDzeuThy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 215D4202D6 X-Spam-Score: -0.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: EqtBGIVOTqeb * gnu/packages/python-web.scm (python-webcolors): New variable. --- gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 62de043e70..08e2006a3e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Pradana Aumars +;;; Copyright © 2021 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -6250,3 +6251,42 @@ (define-public python-w3lib comments, or tags from HTML snippets, extract base url from HTML snippets, translate entities on HTML strings, among other things.") (license license:bsd-3))) + +(define-public python-webcolors + (package + (name "python-webcolors") + (version "1.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "webcolors" version)) + (sha256 + (base32 "1rkda75h2p65zx6r84c9mjavn4xpviqvqrklvdvcklapd5in1wvn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/ubernostrum/webcolors") + (synopsis "HTML/CSS color definitions library") + (description "@code{python-webcolors} is a module for working with +HTML/CSS color definitions. Normalizing and converting between the following +formats is supported. + +@itemize +@item Specification-defined color names +@item Six-digit hexadecimal +@item Three-digit hexadecimal +@item Integer rgb() triplet +@item Percentage rgb() triplet +@end itemize + +Only the RGB colorspace is supported. Conversion to/from the HSL colorspace +can be handled by the @code{colorsys} module in the Python standard library.") + (license license:bsd-3))) -- 2.33.0