~ruther/guix-local

076d425945a02b8605c8c4a06379dcceb1f89712 — Nicolas Graves 7 months ago 58797f1
gnu: pantalaimon: Switch to pyproject.

* gnu/packages/matrix.scm (pantalaimon):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Set them.
<#:phases>: Remove 'check phase replacement.
[native-inputs]: Add python-setuptools.

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

M gnu/packages/matrix.scm
M gnu/packages/matrix.scm => gnu/packages/matrix.scm +10 -11
@@ 327,9 327,14 @@ fledged batteries-included asyncio layer using aiohttp.")
         (file-name (git-file-name name version))
         (sha256
          (base32 "1i18mjlc143d2xwlha09i5ny06vipmy8fii05427zq5vjz8rysgx"))))
      (build-system python-build-system)
      (build-system pyproject-build-system)
      (arguments
       (list
        #:test-flags
        #~(list "tests"
                ;; These tests hang.
                "--ignore=tests/proxy_test.py"
                "-k" "not test_start_loop")
        #:phases
        #~(modify-phases %standard-phases
            (add-after 'unpack 'relax-requirements


@@ 344,21 349,15 @@ fledged batteries-included asyncio layer using aiohttp.")
                  (let ((man (string-append #$output "/share/man")))
                    (install-file "panctl.1" (string-append man "/man1"))
                    (install-file "pantalaimon.5" (string-append man "/man5"))
                    (install-file "pantalaimon.8" (string-append man "/man8"))))))
            (replace 'check
              (lambda* (#:key tests? inputs outputs #:allow-other-keys)
                (when tests?
                  (add-installed-pythonpath inputs outputs)
                  (invoke "pytest" "-vv" "tests"
                          ;; These tests hang.
                          "--ignore=tests/proxy_test.py"
                          "-k" "not test_start_loop")))))))
                    (install-file "pantalaimon.8"
                                  (string-append man "/man8")))))))))
      (native-inputs
       (list python-aioresponses
             python-faker
             python-pytest
             python-pytest-aiohttp
             python-pytest-asyncio))
             python-pytest-asyncio
             python-setuptools))
      (propagated-inputs
       (list python-aiohttp
             python-attrs