me
/
guix
Archived
1
0
Fork 0

gnu: vdirsyncer: Update 0.9.2.

* gnu/packages/dav.scm (vdirsyncer): Update to 0.9.2.
[arguments]: Run the test suite after installation. Use DETERMINISTIC_TESTS.
Run tests with `make` instead of "py.test".
[native-inputs]: Remove python-pytest-xprocess and python-oauthlib.
master
Leo Famulari 2016-03-13 16:17:29 -04:00
parent bea6d94d24
commit 36455a9672
1 changed files with 14 additions and 12 deletions

View File

@ -52,21 +52,16 @@ clients.")
(define-public vdirsyncer (define-public vdirsyncer
(package (package
(name "vdirsyncer") (name "vdirsyncer")
(version "0.9.0") (version "0.9.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "vdirsyncer" version)) (uri (pypi-uri "vdirsyncer" version))
(sha256 (sha256
(base32 (base32
"0s9awjr9v60rr80xcpwmdhkf4v1yqnydahjmxwvxmh64565is465")))) "1g1107cz4sk41d2z6k6pn9n2fzd26m72j8aj33zn483vfvmyrc4q"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(setenv "DAV_SERVER" "radicale")
(setenv "REMOTESTORAGE_SERVER" "skip")
(zero? (system* "py.test"))))
;; vdirsyncer requires itself to be installed in order to build ;; vdirsyncer requires itself to be installed in order to build
;; the manpage. ;; the manpage.
(add-after 'install 'manpage (add-after 'install 'manpage
@ -80,17 +75,24 @@ clients.")
"docs/_build/man/vdirsyncer.1" "docs/_build/man/vdirsyncer.1"
(string-append (string-append
(assoc-ref outputs "out") (assoc-ref outputs "out")
"/share/man/man1"))))))) "/share/man/man1"))))
;; vdirsyncer requires itself to be installed in order to run the test
;; suite.
(delete 'check)
(add-after 'install 'check-later
(lambda _
(setenv "DETERMINISTIC_TESTS" "true")
(setenv "DAV_SERVER" "radicale")
(setenv "REMOTESTORAGE_SERVER" "skip")
(zero? (system* "make" "test")))))))
(native-inputs (native-inputs
`(("python-oauthlib" ,python-oauthlib) `(("python-setuptools-scm" ,python-setuptools-scm)
("python-setuptools-scm" ,python-setuptools-scm)
("python-sphinx" ,python-sphinx) ("python-sphinx" ,python-sphinx)
;; Required for testing ;; Required for testing
("python-hypothesis" ,python-hypothesis) ("python-hypothesis" ,python-hypothesis)
("python-pytest" ,python-pytest) ("python-pytest" ,python-pytest)
("python-pytest-localserver" ,python-pytest-localserver) ("python-pytest-localserver" ,python-pytest-localserver)
("python-pytest-subtesthack" ,python-pytest-subtesthack) ("python-pytest-subtesthack" ,python-pytest-subtesthack)
("python-pytest-xprocess" ,python-pytest-xprocess)
("python-wsgi-intercept" ,python-wsgi-intercept) ("python-wsgi-intercept" ,python-wsgi-intercept)
("radicale" ,radicale))) ("radicale" ,radicale)))
(propagated-inputs (propagated-inputs
@ -98,7 +100,7 @@ clients.")
("python-click" ,python-click) ("python-click" ,python-click)
("python-click-log" ,python-click-log) ("python-click-log" ,python-click-log)
("python-click-threading" ,python-click-threading) ("python-click-threading" ,python-click-threading)
("python-lxml" ,python-lxml) ; which one? ("python-lxml" ,python-lxml)
("python-requests-toolbelt" ,python-requests-toolbelt))) ("python-requests-toolbelt" ,python-requests-toolbelt)))
(synopsis "Synchronize calendars and contacts") (synopsis "Synchronize calendars and contacts")
(description "Vdirsyncer synchronizes your calendars and addressbooks (description "Vdirsyncer synchronizes your calendars and addressbooks