diff options
| author | jgart <jgart@dismail.de> | 2025-10-06 14:44:07 -0500 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2025-10-06 15:16:13 -0500 |
| commit | ca56c63101d37a96f84f72bdc62d5eacac8c25a5 (patch) | |
| tree | b0d9ac7aaaad9b23a7826a0be8c7eb237f81c793 /gnu/packages/databases.scm | |
| parent | 765f3200dd2823124d006b51fe736340abf1e8ad (diff) | |
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
Diffstat (limited to 'gnu/packages/databases.scm')
| -rw-r--r-- | gnu/packages/databases.scm | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index c2a7f8db49b..a86a2de3892 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -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 |
