all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#33438] [PATCH] gnu: Add python-wikidata.
@ 2018-11-19 23:09 swedebugia
  2018-11-19 23:33 ` swedebugia
  2018-11-21 10:29 ` bug#33438: " Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: swedebugia @ 2018-11-19 23:09 UTC (permalink / raw)
  To: 33438, pjotr.public12

[-- Attachment #1: Type: text/plain, Size: 80 bytes --]

First step towards integration between Guix<->Wikidata :D
-- 
Cheers
Swedebugia

[-- Attachment #2: 0001-gnu-Add-python-wikidata.patch --]
[-- Type: text/x-patch, Size: 1458 bytes --]

From 76c5e10a1a8f3657408a48170547becd9674898d Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@riseup.net>
Date: Tue, 20 Nov 2018 00:07:19 +0100
Subject: [PATCH] gnu: Add python-wikidata.

* gnu/packages/python.scm: New variable.
---
 gnu/packages/python.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2b7482a3e..70cd9ee08 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14630,3 +14630,24 @@ on regular expressions.")
      "This module implements the PRECIS Framework as described in RFC 8264,
 RFC 8265 and RFC 8266.")
     (license license:expat)))
+
+(define-public python-wikidata
+  (package
+    (name "python-wikidata")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri "https://files.pythonhosted.org/packages/8a/60/461dd0d04110bd55cea21bf5b3e58c3662955f5470e7ea0ea4a5542d1733/Wikidata-0.6.1.tar.gz")
+       (sha256
+        (base32
+         "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-babel" ,python-babel)))
+    (home-page "https://github.com/dahlia/wikidata")
+    (synopsis "Wikidata client library")
+    (description "Wikidata SPAQL client library which provides easy APIs to
+use Wikidata.org for Python.")
+    (license license:gplv3))) ; unclear if "or later", bug filed
+
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#33438] [PATCH] gnu: Add python-wikidata.
  2018-11-19 23:09 [bug#33438] [PATCH] gnu: Add python-wikidata swedebugia
@ 2018-11-19 23:33 ` swedebugia
  2018-11-21 10:29 ` bug#33438: " Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: swedebugia @ 2018-11-19 23:33 UTC (permalink / raw)
  To: 33438, pjotr.public12

On 2018-11-20 00:09, swedebugia wrote:
> First step towards integration between Guix<->Wikidata :D

The pypi-url did not look in the right place for the file so I hardcoded 
the url.

"guix import pypi wikidata" found the correct url - no idea why "guix 
build" did not.

-- 
Cheers
Swedebugia

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#33438: [PATCH] gnu: Add python-wikidata.
  2018-11-19 23:09 [bug#33438] [PATCH] gnu: Add python-wikidata swedebugia
  2018-11-19 23:33 ` swedebugia
@ 2018-11-21 10:29 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2018-11-21 10:29 UTC (permalink / raw)
  To: swedebugia; +Cc: 33438-done

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

Hello,

swedebugia <swedebugia@riseup.net> skribis:

>>From 76c5e10a1a8f3657408a48170547becd9674898d Mon Sep 17 00:00:00 2001
> From: swedebugia <swedebugia@riseup.net>
> Date: Tue, 20 Nov 2018 00:07:19 +0100
> Subject: [PATCH] gnu: Add python-wikidata.
>
> * gnu/packages/python.scm: New variable.

Applied with these changes:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1112 bytes --]

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e13c1cad39..d87b1315e6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14625,7 +14625,7 @@ RFC 8265 and RFC 8266.")
     (source
      (origin
        (method url-fetch)
-       (uri "https://files.pythonhosted.org/packages/8a/60/461dd0d04110bd55cea21bf5b3e58c3662955f5470e7ea0ea4a5542d1733/Wikidata-0.6.1.tar.gz")
+       (uri (pypi-uri "Wikidata" version))
        (sha256
         (base32
          "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
@@ -14634,7 +14634,8 @@ RFC 8265 and RFC 8266.")
      `(("python-babel" ,python-babel)))
     (home-page "https://github.com/dahlia/wikidata")
     (synopsis "Wikidata client library")
-    (description "Wikidata SPAQL client library which provides easy APIs to
-use Wikidata.org for Python.")
-    (license license:gplv3))) ; unclear if "or later", bug filed
-
+    (description
+     "This package provides a Python interface to
+@url{https://www.wikidata.org/, Wikidata}.")
+    (properties '((upstream-name . "Wikidata")))
+    (license license:gpl3+)))

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]


The ‘PKG-INFO’ file reads this:

  License: GPLv3 or later

and there are no source file headers contradicting it, so it’s
definitely GPLv3+.

Thank you!

Ludo’.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-21 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 23:09 [bug#33438] [PATCH] gnu: Add python-wikidata swedebugia
2018-11-19 23:33 ` swedebugia
2018-11-21 10:29 ` bug#33438: " Ludovic Courtès

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.