Subject: [bug#66397] [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0.

From: Giacomo Leidi <[email-masked]>
Date: Sat, 7 Oct 2023 23:39:38 +0200

* 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