From patchwork Wed Sep 8 19:42:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 32720 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 00F0127BBE3; Wed, 8 Sep 2021 20:43:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7155B27BBE1 for ; Wed, 8 Sep 2021 20:43:11 +0100 (BST) Received: from localhost ([::1]:52458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO3TS-0007dQ-EQ for patchwork@mira.cbaines.net; Wed, 08 Sep 2021 15:43:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO3TL-0007ck-76 for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mO3TK-0000iN-VO for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mO3TK-00085s-TR for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50481] [PATCH 2/3] gnu: python-rdflib: Update to 6.0.0. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Sep 2021 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50481 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50481@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 50481-submit@debbugs.gnu.org id=B50481.163113014631050 (code B ref 50481); Wed, 08 Sep 2021 19:43:02 +0000 Received: (at 50481) by debbugs.gnu.org; 8 Sep 2021 19:42:26 +0000 Received: from localhost ([127.0.0.1]:33616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO3Sk-00084j-4t for submit@debbugs.gnu.org; Wed, 08 Sep 2021 15:42:26 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO3Sa-000841-QW for 50481@debbugs.gnu.org; Wed, 08 Sep 2021 15:42:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=diK/q+vfJiszy+W1Rfh2WOQiSIl32+WjcDvehq/eAWo=; b=G8pgFpQ8aK41eo2pJjQDwOhFs9 GCfMpw/fSnaITkM4N0GoXyBanUfRCmQC06xhD9wbAa6KIIZhp82DG++M8d6T5913IyM5lEIb74MH2 nvGCO55MFZhg/5+OJ6DHRe0a2TvVsGwrsaXMiqlOSPsUgvAe303zVmxhmdo40lCbJMFv9FM1/YT4s m4czdNPu7UYQq0px2hzx+vEezurFmIDzEnj8OQoM2Et1x/a08M7wyQJgMTihhR8yExSuGsJfHpPWe dTgOGNf2P1HDXirw9bZTy7VCCt180dtFvk7I8HJZk2MGrw05ygyexdDyN2/0C5PJrDHHh/bUBpgye 1md/nosQ==; Received: from [192.168.2.1] (port=61150 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mO3SX-000WuL-Ua; Thu, 09 Sep 2021 01:12:14 +0530 From: Arun Isaac Date: Thu, 9 Sep 2021 01:12:10 +0530 Message-Id: <20210908194211.16140-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210908194211.16140-1-arunisaac@systemreboot.net> References: <20210908194211.16140-1-arunisaac@systemreboot.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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/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 ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2020 pukkamustard +;;; Copyright © 2021 Arun Isaac ;;; ;;; 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