From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHNy-0005TY-Rw for guix-patches@gnu.org; Sat, 15 Jul 2017 03:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHNx-0003mi-NI for guix-patches@gnu.org; Sat, 15 Jul 2017 03:21:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWHNx-0003me-Jd for guix-patches@gnu.org; Sat, 15 Jul 2017 03:21:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWHNx-0001e8-8Y for guix-patches@gnu.org; Sat, 15 Jul 2017 03:21:05 -0400 Subject: [bug#27703] [PATCH 4/4] gnu: Add python-internetarchive. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHNB-0005RM-01 for guix-patches@gnu.org; Sat, 15 Jul 2017 03:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHN9-0003RD-Ke for guix-patches@gnu.org; Sat, 15 Jul 2017 03:20:16 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:36520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWHN9-0003Qm-Da for guix-patches@gnu.org; Sat, 15 Jul 2017 03:20:15 -0400 Received: by mail-lf0-x243.google.com with SMTP id f28so9591900lfi.3 for ; Sat, 15 Jul 2017 00:20:15 -0700 (PDT) From: Oleg Pykhalov Date: Sat, 15 Jul 2017 10:19:37 +0300 Message-Id: <20170715071937.18672-5-go.wigust@gmail.com> In-Reply-To: <20170715071937.18672-1-go.wigust@gmail.com> References: <20170715071937.18672-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27703@debbugs.gnu.org Is it a good idea to leave python-pytest as dependency in python2-internetarchive (inside ,@(package-propagated-inputs internetarchive))? If not, what is good way to avoid this? * gnu/packages/python.scm (python-internetarchive): New variable. --- gnu/packages/web.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 802990354..162a89455 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4695,3 +4695,45 @@ arrays. It creates a JSON string on stdout from words provided as command-line arguments or read from stdin.") (license (list l:gpl2+ l:expat)))) ; json.c, json.h + +(define-public python-internetarchive + (package + (name "python-internetarchive") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/jjjake/internetarchive/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00v1489rv1ydcihwbdl7sqpcpmm98b9kqqlfggr32k0ndmv7ivas")))) + (build-system python-build-system) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-jsonpatch" ,python-jsonpatch-0.4) + ("python-docopt" ,python-docopt) + ("python-clint" ,python-clint) + ("python-six" ,python-six) + ("python-schema" ,python-schema-0.5) + ("python-backports-csv" ,python-backports-csv))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-responses" ,python-responses))) + (home-page "https://github.com/jjjake/internetarchive") + (synopsis "Command-line interface to archive.org") + (description "@code{ia} is a command-line tool for using +@url{archive.org} from the command-line. It also emplements the +internetarchive python module for programatic access to archive.org.") + (license l:agpl3+))) + +(define-public python2-internetarchive + (let ((internetarchive (package-with-python2 (strip-python2-variant python-internetarchive)))) + (package (inherit internetarchive) + (propagated-inputs + `(("python2-pytest" + ,python2-pytest) + ,@(package-propagated-inputs internetarchive)))))) + -- 2.13.2