unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66397] [PATCH] Fix and update python-tortoise-orm.
@ 2023-10-07 21:17 paul via Guix-patches via
  2023-10-07 21:39 ` [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check Giacomo Leidi via Guix-patches via
  2023-10-23 22:01 ` bug#66397: [PATCH] Fix and update python-tortoise-orm Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: paul via Guix-patches via @ 2023-10-07 21:17 UTC (permalink / raw)
  To: 66397

Hello Guixers,

python-tortoise-orm is broken on master since it depends on 
aiosqlite<0.18 . This patchset fixes it and updates it to the latest 
version.


Thank you for your time and effort,


giacomo





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check.
  2023-10-07 21:17 [bug#66397] [PATCH] Fix and update python-tortoise-orm paul via Guix-patches via
@ 2023-10-07 21:39 ` Giacomo Leidi via Guix-patches via
  2023-10-07 21:39   ` [bug#66397] [PATCH 2/3] gnu: python-pypika-tortoise: Update to 0.1.6 Giacomo Leidi via Guix-patches via
  2023-10-07 21:39   ` [bug#66397] [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0 Giacomo Leidi via Guix-patches via
  2023-10-23 22:01 ` bug#66397: [PATCH] Fix and update python-tortoise-orm Ludovic Courtès
  1 sibling, 2 replies; 5+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2023-10-07 21:39 UTC (permalink / raw)
  To: 66397; +Cc: Giacomo Leidi

* gnu/packages/databases.scm (python-aiosqlite-0.17): New variable;
(python-tortoise-orm)[propagated-inputs]: use it.
---
 gnu/packages/databases.scm | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b5077583c3..f458af2e1a 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3087,7 +3087,7 @@ (define-public python-tortoise-orm
     (arguments '(#:tests? #f))
     (propagated-inputs
      (list python-aiomysql
-           python-aiosqlite
+           python-aiosqlite-0.17
            python-asyncmy
            python-asyncpg
            python-ciso8601
@@ -3777,6 +3777,34 @@ (define-public python-aiosqlite
 managers for automatically closing connections.")
     (license license:expat)))
 
+(define-public python-aiosqlite-0.17
+  (package
+    (inherit python-aiosqlite)
+    (version "0.17.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/omnilib/aiosqlite")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name (package-name python-aiosqlite)
+                                        version))
+              (sha256
+               (base32
+                "1agh7b9g7rgryvb8flph85i8m80ai1rinpljxzlsrs0s0y616qgg"))))
+    (build-system pyproject-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (if tests?
+                          (invoke "python" "-m" "unittest" "aiosqlite.tests")
+                          (format #t "test suite not run~%"))
+                      #t)))))
+    (propagated-inputs
+     (list python-typing-extensions))
+    (native-inputs
+     (list python-flit-core python-aiounittest))))
+
 (define-public python-databases
   (package
     (name "python-databases")

base-commit: 00a28bc435606dc98925fbae1ebe314881f35c90
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#66397] [PATCH 2/3] gnu: python-pypika-tortoise: Update to 0.1.6.
  2023-10-07 21:39 ` [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check Giacomo Leidi via Guix-patches via
@ 2023-10-07 21:39   ` Giacomo Leidi via Guix-patches via
  2023-10-07 21:39   ` [bug#66397] [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0 Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2023-10-07 21:39 UTC (permalink / raw)
  To: 66397; +Cc: Giacomo Leidi

* gnu/packages/databases.scm (python-pypika-tortoise): Update to 0.1.6;
[build-system]: switch to pyproject-build-system;
[native-inputs]: add poetry.
---
 gnu/packages/databases.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f458af2e1a..3e86f34510 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2972,14 +2972,16 @@ (define-public python-peewee
 (define-public python-pypika-tortoise
   (package
     (name "python-pypika-tortoise")
-    (version "0.1.5")
+    (version "0.1.6")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pypika-tortoise" version))
        (sha256
-        (base32 "0j20574s2yrq8d7fav3816vj1nfpihkm2mj8jzh2ank4zixp8brf"))))
-    (build-system python-build-system)
+        (base32 "0dmzpsnlqjjz0vm0r9xjk69xfsm235bpnk3jccr8ww4s8y7qc0nq"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list poetry))
     (home-page "https://github.com/tortoise/pypika-tortoise")
     (synopsis "Pypika fork for tortoise-orm")
     (description "Pypika-tortoise is a fork of pypika which has been
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#66397] [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0.
  2023-10-07 21:39 ` [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check Giacomo Leidi via Guix-patches via
  2023-10-07 21:39   ` [bug#66397] [PATCH 2/3] gnu: python-pypika-tortoise: Update to 0.1.6 Giacomo Leidi via Guix-patches via
@ 2023-10-07 21:39   ` Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2023-10-07 21:39 UTC (permalink / raw)
  To: 66397; +Cc: Giacomo Leidi

* gnu/packages/databases.scm (python-tortoise-orm): Update to 0.20.0;
[source]: switch to git-fetched origin;
[build-system]: switch to pyproject-build-system;
[native-inputs]: add poetry.
---
 gnu/packages/databases.scm | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 3e86f34510..b23b58f54f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3076,17 +3076,22 @@ (define-public python-aiomysql
 (define-public python-tortoise-orm
   (package
     (name "python-tortoise-orm")
-    (version "0.19.1")
+    (version "0.20.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "tortoise-orm" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/tortoise-orm")
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "17yk71dlx5ai98i6ivqgsplkwivdxackz9jfn6z42bpcdgbpiwhg"))))
-    (build-system python-build-system)
+        (base32 "19rgyvs2y9gn27x71y7djdz6rb6bszgvprv55q1hr4266wy6g999"))))
+    (build-system pyproject-build-system)
     ;; The test suite relies on asynctest, which is abandoned and doesn't
     ;; support Python >= 3.8.
     (arguments '(#:tests? #f))
+    (native-inputs
+     (list poetry))
     (propagated-inputs
      (list python-aiomysql
            python-aiosqlite-0.17
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#66397: [PATCH] Fix and update python-tortoise-orm.
  2023-10-07 21:17 [bug#66397] [PATCH] Fix and update python-tortoise-orm paul via Guix-patches via
  2023-10-07 21:39 ` [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check Giacomo Leidi via Guix-patches via
@ 2023-10-23 22:01 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2023-10-23 22:01 UTC (permalink / raw)
  To: paul; +Cc: 66397-done

Hi,

paul <goodoldpaul@autistici.org> skribis:

> python-tortoise-orm is broken on master since it depends on
> aiosqlite<0.18 . This patchset fixes it and updates it to the latest
> version.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-23 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-07 21:17 [bug#66397] [PATCH] Fix and update python-tortoise-orm paul via Guix-patches via
2023-10-07 21:39 ` [bug#66397] [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check Giacomo Leidi via Guix-patches via
2023-10-07 21:39   ` [bug#66397] [PATCH 2/3] gnu: python-pypika-tortoise: Update to 0.1.6 Giacomo Leidi via Guix-patches via
2023-10-07 21:39   ` [bug#66397] [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0 Giacomo Leidi via Guix-patches via
2023-10-23 22:01 ` bug#66397: [PATCH] Fix and update python-tortoise-orm Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).