unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 50481@debbugs.gnu.org
Cc: Arun Isaac <arunisaac@systemreboot.net>
Subject: [bug#50481] [PATCH 2/3] gnu: python-rdflib: Update to 6.0.0.
Date: Thu,  9 Sep 2021 01:12:10 +0530	[thread overview]
Message-ID: <20210908194211.16140-2-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20210908194211.16140-1-arunisaac@systemreboot.net>

* gnu/packages/rdf.scm (python-rdflib): Update to 6.0.0.
[arguments]: Replace check phase. Enable tests.
[native-inputs]: Add python-black, python-coverage,
python-doctest-ignore-unicode, python-flake8, python-networkx and
python-nose-timer.
[propagated-inputs]: Add python-berkeleydb.
---
 gnu/packages/rdf.scm | 53 +++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm
index fb84d8053d..d09c28402a 100644
--- a/gnu/packages/rdf.scm
+++ b/gnu/packages/rdf.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Pjotr Prins <pjotr.guix@thebird.nl>
 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net>
+;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -337,31 +338,43 @@ ideal (e.g. in LV2 implementations or embedded applications).")
 (define-public python-rdflib
   (package
     (name "python-rdflib")
-    (version "4.2.2")
+    (version "6.0.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "rdflib" version))
-        (sha256
-         (base32
-          "0398c714znnhaa2x7v51b269hk20iz073knq2mvmqp2ma92z27fs"))))
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "rdflib" version))
+       (sha256
+        (base32
+         "0ycqczf33irq0ai6wpg4vxd9xwlpq3c41hsy411xvx16xdbxgr3w"))))
     (build-system python-build-system)
     (arguments
-     '(;; FIXME: Three test failures. Should be fixed next release.
-       #:tests? #f))
-       ;; #:phases
-       ;; (modify-phases %standard-phases
-       ;;   (replace 'check
-       ;;     (lambda _
-       ;;       ;; Run tests from the build directory so python3 only
-       ;;       ;; sees the installed 2to3 version.
-       ;;       (invoke "nosetests" "--where=./build/src"))))))
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key outputs tests? #:allow-other-keys)
+             (when tests?
+               ;; Make installed package available for running the tests.
+               (setenv "PATH" (string-append (assoc-ref outputs "out")
+                                             "/bin:" (getenv "PATH")))
+               (invoke "nosetests"
+                       ;; Exclude tests that require network access.
+                       "--exclude" "^test_sparql_service$"
+                       "--exclude" "^testGuessFormatForParse$"
+                       "--exclude" "^test_onedotone$"
+                       "--exclude" "^rdflib$")))))))
     (native-inputs
-     `(("python-nose" ,python-nose)))
+     `(("python-black" ,python-black)
+       ("python-coverage" ,python-coverage)
+       ("python-doctest-ignore-unicode" ,python-doctest-ignore-unicode)
+       ("python-flake8" ,python-flake8)
+       ("python-networkx" ,python-networkx)
+       ("python-nose" ,python-nose)
+       ("python-nose-timer" ,python-nose-timer)))
     (propagated-inputs
-      `(("python-html5lib" ,python-html5lib)
-        ("python-isodate" ,python-isodate)
-        ("python-pyparsing" ,python-pyparsing)))
+     `(("python-berkeleydb" ,python-berkeleydb)
+       ("python-html5lib" ,python-html5lib)
+       ("python-isodate" ,python-isodate)
+       ("python-pyparsing" ,python-pyparsing)))
     (home-page "https://github.com/RDFLib/rdflib")
     (synopsis "Python RDF library")
     (description
-- 
2.33.0





  reply	other threads:[~2021-09-08 19:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08 19:33 [bug#50481] [PATCH 0/3] Update python-rdflib Arun Isaac
2021-09-08 19:42 ` [bug#50481] [PATCH 1/3] gnu: Add python-berkeleydb Arun Isaac
2021-09-08 19:42   ` Arun Isaac [this message]
2021-09-08 19:42   ` [bug#50481] [PATCH 3/3] gnu: python2-rdflib: Remove package Arun Isaac
2021-09-21 12:54 ` [bug#50481] [PATCH 0/3] Update python-rdflib Ludovic Courtès
2021-09-22 20:25   ` Arun Isaac
2022-02-15  7:42     ` bug#50481: " Arun Isaac

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20210908194211.16140-2-arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=50481@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).