~ruther/guix-local

7806383af2c610e39a25a1b8bb342903806f806d — Hugo Buddelmeijer 7 months ago b1df03a
gnu: python-prov: Update to 2.1.1.

* gnu/packages/python-xyz.scm (python-prov): Update to 2.1.1.
[source] <origin>: Switch to git-fetch.
[arguments] <#:phases>: Remove 'check phase, add 'disable-tests phase.
<#:test-backend>: Use unittest.
<#:test-flags>: Move flags from old 'check phase here.
[propagated-inputs]: Remove python-rdflib-6; add python-pydot, graphviz,
and python-rdflib.
[native-inputs]: Remove graphviz, python-pydot, and python-wheel.

Change-Id: I1dedb6b6f4394cdf14cdd496aa74e3390e48727d
Co-authored-by: Ghislain Vaillant <ghislain.vaillant@inria.fr>
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 27 insertions(+), 18 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +27 -18
@@ 27114,33 27114,42 @@ in pure Python.")
(define-public python-prov
  (package
    (name "python-prov")
    (version "2.0.1")
    (version "2.1.1")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "prov" version))
        (sha256
         (base32
          "0zv1lllrm8ck0vnb5ym7s3cvyykg7pbvdcrrpmr5r9fi0la8q8qf"))))
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/trungdong/prov")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "14y58x4gqc4lyhgy6iamzxamwj02sqf2bkma6p5ddiqsnilc4wx7"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'unittest
      #:test-flags #~(list "discover" "-s" "src")
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "python" "setup.py" "test")))))))
    (propagated-inputs
     (list python-dateutil
           python-lxml
           python-networkx
           python-rdflib-6))
          (add-before 'check 'disable-tests
            (lambda _
              ;; prov.model.ProvException: The provided identifier
              ;; "http://www.example.org/bundle" is not valid
              (substitute* "src/prov/tests/qnames.py"
                (("test_namespace_inheritance")
                 "disabled_test_namespace_inheritance")
                (("test_default_namespace_inheritance")
                 "disabled_test_default_namespace_inheritance")))))))
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     (list graphviz
           python-dateutil
           python-networkx
           python-pydot
           python-setuptools
           python-wheel))
           ;; optional dependencies, also needed for tests
           python-lxml
           python-rdflib))
    (home-page "https://github.com/trungdong/prov")
    (synopsis
     "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")