From patchwork Sat Apr 27 09:36:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 13783 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 4092A16F52; Sat, 27 Apr 2019 14:13:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id BB69F16F4F for ; Sat, 27 Apr 2019 14:13:47 +0100 (BST) Received: from localhost ([127.0.0.1]:60233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKN9H-0000hs-6s for patchwork@mira.cbaines.net; Sat, 27 Apr 2019 09:13:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKJnY-0007Il-Ku for guix-patches@gnu.org; Sat, 27 Apr 2019 05:39:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKJnU-0005Km-2h for guix-patches@gnu.org; Sat, 27 Apr 2019 05:39:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKJnT-0005Jx-Iy for guix-patches@gnu.org; Sat, 27 Apr 2019 05:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKJnT-0001AF-Ef for guix-patches@gnu.org; Sat, 27 Apr 2019 05:39:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35446] [PATCH 18/26] gnu: Add python-soupsieve, python2-soupsieve Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Apr 2019 09:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35446 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35446@debbugs.gnu.org Received: via spool by 35446-submit@debbugs.gnu.org id=B35446.15563578924287 (code B ref 35446); Sat, 27 Apr 2019 09:39:03 +0000 Received: (at 35446) by debbugs.gnu.org; 27 Apr 2019 09:38:12 +0000 Received: from localhost ([127.0.0.1]:34410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKJmd-00016z-TR for submit@debbugs.gnu.org; Sat, 27 Apr 2019 05:38:12 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:13278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKJmP-00013H-Oe for 35446@debbugs.gnu.org; Sat, 27 Apr 2019 05:37:59 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 5632CA01B1 for <35446@debbugs.gnu.org>; Sat, 27 Apr 2019 11:37:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1556357872; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ArBRNUL+SeS6QaL4gEYKbWhQSpS+jyC7YVqahv2eC0Y=; b=GjCwt2qQMQwxbJ6+veWkiWIedAI+TngU/Q1tMwuZCqx9bSTtqhiUUBJ8Zp8lWyOI4ajvYQ WVAgXAlNVFKQMbagYlwC82mkmhjCvY4kyXF8jhr/sju2jzfnC8bmbzT6lfY0R4VncaaN2w RhgD+nm9994mXdTA2by2Y/l82Za446lZq5oqQh8aau4l+HkpMfh7h8yjMC60efq6mVrKZE 2CEMLWtUZd7HfhazGgaJsDu6rOaCUXD8WCLNt76zP8FgTL4wWSTcQivc+DoqePg4JZpxM4 4UY7B0ZsaNWX3sv5pYEZl1NWR82tIdq5HkeE3O4GGU8AGkysNfn1nm249Uv1sw== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 7t5EIrsa3Lib for <35446@debbugs.gnu.org>; Sat, 27 Apr 2019 11:37:48 +0200 (CEST) From: Brendan Tildesley Date: Sat, 27 Apr 2019 19:36:51 +1000 Message-Id: <20190427093659.21851-18-mail@brendan.scot> In-Reply-To: <20190427093659.21851-1-mail@brendan.scot> References: <20190427093659.21851-1-mail@brendan.scot> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-Mailman-Approved-At: Sat, 27 Apr 2019 09:12:43 -0400 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-soupsieve, python2-soupsieve): New variables. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f1ea1e22ad..054ec31846 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5272,6 +5272,39 @@ converts incoming documents to Unicode and outgoing documents to UTF-8.") (strip-python2-variant python-beautifulsoup4))) (arguments `(#:python ,python-2)))) +(define-public python-soupsieve + (package + (name "python-soupsieve") + (version "1.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "soupsieve" version)) + (sha256 + (base32 + "1jnzkiwmjl6yvqckc9mf689g87b6yz07sv868hap2aa5arggy3mj")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) + ;;XXX: 2 tests fail currently despite claming they were to be + ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we + ;;don't want to create a circular dependency. + (home-page "https://github.com/facelessuser/soupsieve") + (synopsis "CSS selector library") + (description + "Soup Sieve is a CSS selector library designed to be used with Beautiful +Soup 4. It aims to provide selecting, matching, and filtering using modern +CSS selectors. Soup Sieve currently provides selectors from the CSS level 1 +specifications up through the latest CSS level 4 drafts and beyond (though +some are not yet implemented).") + (license license:expat))) + +(define-public python2-soupsieve + (let ((base (package-with-python2 python-soupsieve))) + (package + (inherit base) + (propagated-inputs + `(("python2-backports-functools-lru-cache" ,python2-backports-functools-lru-cache)))))) + (define-public python-netifaces (package (name "python-netifaces")