~ruther/guix-local

aba1210d8e6a6de3e068fe335808299d4bcdb2fd — Nicolas Graves 2 months ago 6c2b1e4
gnu: rtv: Switch to pyproject.

* gnu/packages/syndication.scm (rtv):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-setuptools.  Remove python-coveralls,
python-coverage, python-pylint, python-vcrpy.

Change-Id: Ib77e39e961ca3b9badc11995b75870c54a7531e9
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 26 insertions(+), 30 deletions(-)

M gnu/packages/syndication.scm
M gnu/packages/syndication.scm => gnu/packages/syndication.scm +26 -30
@@ 349,41 349,37 @@ a simple interface that makes it easy to organize and browse feeds.")
    (name "rtv")
    (version "1.27.0")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "rtv" version))
        (sha256
         (base32 "0hvw426y09l3yzwv2zkb9hifpfbg9wd1gg0y3z3pxcli6n3ii2wl"))))
    (build-system python-build-system)
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/michael-lazar/rtv")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1hw7xy2kjxq7y3wcibcz4l7zj8icvigialqr17l362xry0y17y5j"))))
    (build-system pyproject-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (add-before 'check 'set-environment-variables
           (lambda* (#:key inputs #:allow-other-keys)
             (setenv "HOME" (getcwd))
             (setenv "TERM" "linux")
             (setenv "TERMINFO"
                     (search-input-directory inputs "share/terminfo"))))
         ;; Loading this as a library requires a controlling terminal, etc.
         (delete 'sanity-check))
       #:tests? #f)) ; tests fail: _curses.error: nocbreak() returned ERR
    (propagated-inputs
     (list python-beautifulsoup4 python-decorator python-kitchen
           python-requests python-six))
    (native-inputs
     (list ncurses
           python-coveralls
           python-coverage
           python-mock
           python-pylint
           python-pytest
           python-vcrpy))
     (list
      #:tests? #f ;tests fail: _curses.error: nocbreak() returned ERR
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'set-environment-variables
            (lambda* (#:key inputs #:allow-other-keys)
              (setenv "HOME"
                      (getcwd))
              (setenv "TERM" "linux")
              (setenv "TERMINFO"
                      (search-input-directory inputs "share/terminfo"))))
          ;; Loading this as a library requires a controlling terminal, etc.
          (delete 'sanity-check))))
    (propagated-inputs (list python-beautifulsoup4 python-decorator
                             python-requests python-six))
    (native-inputs (list ncurses python-mock python-pytest python-setuptools))
    (home-page "https://github.com/michael-lazar/rtv")
    (synopsis "Terminal viewer for Reddit (Reddit Terminal Viewer)")
    (description
     "RTV provides a text-based interface to view and interact with Reddit.")
    (license (list license:expat
                   license:gpl3+)))) ; rtv/packages/praw
    (license (list license:expat license:gpl3+)))) ; rtv/packages/praw

(define-public tuir
  (package