Archived
1
0
Fork 0

gnu: python-pathpy: Update to 11.0.

* gnu/packages/python.scm (python-pathpy): Update to 11.0.
[source](uri): Use PYPI-URI.
[outputs]: Remove field.
[arguments]: Set #:tests? #f.  Remove #:phases.
This commit is contained in:
Marius Bakke 2018-02-26 03:01:48 +01:00
parent 557f8f212e
commit b8509387d1
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -4270,15 +4270,14 @@ them as the version argument or in a SCM managed file.")
(define-public python-pathpy (define-public python-pathpy
(package (package
(name "python-pathpy") (name "python-pathpy")
(version "8.1.1") (version "11.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://pypi.python.org/packages/source/p/" (uri (pypi-uri "path.py" version))
"path.py/path.py-" version ".tar.gz"))
(sha256 (sha256
(base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) (base32 "12s84maimiz61980q065rjgi8ang6xw2wwm64m0lmfks51dlw4qn"))))
(outputs '("out" "doc")) ;; (outputs '("out" "doc"))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-appdirs" ,python-appdirs))) `(("python-appdirs" ,python-appdirs)))
@ -4289,22 +4288,24 @@ them as the version argument or in a SCM managed file.")
("python-pytest" ,python-pytest) ("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner))) ("python-pytest-runner" ,python-pytest-runner)))
(arguments (arguments
`(#:phases ;; FIXME: Documentation and tests require "jaraco.packaging".
(modify-phases %standard-phases `(#:tests? #f))
(add-after 'build 'build-doc ;; #:phases
(lambda _ ;; (modify-phases %standard-phases
(setenv "LANG" "en_US.UTF-8") ;; (add-after 'build 'build-doc
(zero? (system* "python" "setup.py" "build_sphinx")))) ;; (lambda _
(add-after 'install 'install-doc ;; (setenv "LANG" "en_US.UTF-8")
(lambda* (#:key outputs #:allow-other-keys) ;; (zero? (system* "python" "setup.py" "build_sphinx"))))
(let* ((data (string-append (assoc-ref outputs "doc") "/share")) ;; (add-after 'install 'install-doc
(doc (string-append data "/doc/" ,name "-" ,version)) ;; (lambda* (#:key outputs #:allow-other-keys)
(html (string-append doc "/html"))) ;; (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
(mkdir-p html) ;; (doc (string-append data "/doc/" ,name "-" ,version))
(for-each (lambda (file) ;; (html (string-append doc "/html")))
(copy-file file (string-append doc "/" file))) ;; (mkdir-p html)
'("README.rst" "CHANGES.rst")) ;; (for-each (lambda (file)
(copy-recursively "build/sphinx/html" html))))))) ;; (copy-file file (string-append doc "/" file)))
;; '("README.rst" "CHANGES.rst"))
;; (copy-recursively "build/sphinx/html" html)))))))
(home-page "https://github.com/jaraco/path.py") (home-page "https://github.com/jaraco/path.py")
(synopsis "Python module wrapper for built-in os.path") (synopsis "Python module wrapper for built-in os.path")
(description (description