~ruther/guix-local

ca56c63101d37a96f84f72bdc62d5eacac8c25a5 — jgart 8 months ago 765f320
gnu: python-peewee: Enable tests.

* gnu/packages/databases.scm (python-peewee): Enable tests.
[source]: Use upstream source since PyPI does not include tests.
[arguments]: Run the tests.

Change-Id: I359cfbfebba1b5664cb5fb2209879237860b4659
1 files changed, 13 insertions(+), 4 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +13 -4
@@ 3664,13 3664,22 @@ on another machine, accessed via TCP/IP.")
    (version "3.18.2")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "peewee" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/coleifer/peewee")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "184n97vc9xy0whl8w54431fc4h5ij7mjwggnfbmg5bv1xdil59bp"))))
        (base32 "1qd57cd33mf48q0xfmnld58xn5jpbgqrj1bnqlkjmk87y3g9i0q4"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:tests? #f))                    ; fails to import test data
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "python" "runtests.py")))))))
    (inputs
     (list sqlite))
    (native-inputs