all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: 27703@debbugs.gnu.org
Subject: [bug#27703] [PATCH 4/4] gnu: Add python-internetarchive.
Date: Sat, 15 Jul 2017 10:19:37 +0300	[thread overview]
Message-ID: <20170715071937.18672-5-go.wigust@gmail.com> (raw)
In-Reply-To: <20170715071937.18672-1-go.wigust@gmail.com>

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

  parent reply	other threads:[~2017-07-15  7:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-15  7:19 [bug#27699] [PATCH 0/4] gnu: Add python-internetarchive Oleg Pykhalov
2017-07-15  7:19 ` [bug#27701] [PATCH 1/4] gnu: Add python-schema Oleg Pykhalov
2017-07-15  7:19 ` [bug#27700] [PATCH 2/4] gnu: Add python-backports-csv Oleg Pykhalov
2017-07-15  7:19 ` [bug#27702] [PATCH 3/4] gnu: Add python-jsonpatch Oleg Pykhalov
2017-07-15  7:19 ` Oleg Pykhalov [this message]
2017-07-15  7:26 ` [bug#27699] Splitted accross several bugs reports Oleg Pykhalov
2017-07-15 10:05 ` [bug#27699] [PATCH 0/4] gnu: Add python-internetarchive Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170715071937.18672-5-go.wigust@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=27703@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.