unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Giacomo Leidi via Guix-patches via <guix-patches@gnu.org>
To: 53019@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>, lars@6xq.net
Subject: [bug#53019] [PATCHv3 4/4] gnu: Add python-aerich.
Date: Wed, 12 Apr 2023 23:50:16 +0200	[thread overview]
Message-ID: <20230412215016.6552-4-goodoldpaul@autistici.org> (raw)
In-Reply-To: <20230412215016.6552-1-goodoldpaul@autistici.org>

* gnu/packages/databases.scm (python-aerich): New variable.
---
 gnu/packages/databases.scm | 61 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 5f1fbb87a2..3c3c0c51f1 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -60,6 +60,7 @@
 ;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
 ;;; Copyright © 2021, 2022 jgart <jgart@dismail.de>
 ;;; Copyright © 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2023 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3122,6 +3123,66 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public aerich
+  (package
+    (name "aerich")
+    (version "0.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/aerich")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0zk99c979xn5ym7v1g3v1y4h3cj7kdc7v1hf9f5h011mfs12s3df"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'generate-setup.py
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; This is an hack needed to get poetry's setup.py.
+             (setenv "POETRY_VIRTUALENVS_CREATE" "false")
+             (invoke "poetry" "build" "-f" "sdist")
+             (invoke "bash" "-c"
+                     (string-append "tar --wildcards "
+                                    "-xvf dist/*-`poetry version -s`.tar.gz "
+                                    "-O '*/setup.py' > setup.py"))))
+         (replace 'check
+           (lambda* (#:key tests? outputs #:allow-other-keys)
+             (when tests?
+               (let ((out (assoc-ref outputs "out")))
+                 (invoke "pytest" "-vv"))))))))
+    (native-inputs
+     (list
+      poetry
+      python-bandit
+      python-cryptography
+      python-isort
+      python-pydantic
+      python-pytest
+      python-pytest-asyncio
+      python-pytest-mock
+      python-pytest-xdist))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM (Object Relational
+Mapper)")
+    (description
+      "This package provides @code{aerich}, a Python database migrations tool
+for Tortoise ORM (Object Relational Mapper).  It can be used both
+programmatically or as a standalone CLI application.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.39.2





  parent reply	other threads:[~2023-04-12 21:51 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05  1:18 [bug#53019] [PATCHES] Add aerich Giacomo Leidi via Guix-patches via
2022-01-05  1:24 ` [bug#53019] [PATCH 1/4] gnu: python-dictdiffer: Fix broken test suite Giacomo Leidi via Guix-patches via
2022-01-05  1:24   ` [bug#53019] [PATCH 2/4] gnu: Add python-codeclimate-test-reporter Giacomo Leidi via Guix-patches via
2022-01-05  1:24   ` [bug#53019] [PATCH 3/4] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-01-05  1:24   ` [bug#53019] [PATCH 4/4] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2022-01-24 17:21 ` [bug#53019] (no subject) paul via Guix-patches via
2022-03-05 23:14 ` [bug#53019] friendly ping paul via Guix-patches via
2022-03-05 23:14 ` [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter Giacomo Leidi via Guix-patches via
2022-03-05 23:14   ` [bug#53019] [PATCH 2/3] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-03-06 10:19     ` Maxime Devos
2022-03-06 10:19     ` Maxime Devos
2022-03-14 22:27       ` paul via Guix-patches via
2022-03-05 23:14   ` [bug#53019] [PATCH 3/3] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2022-03-06 10:21     ` Maxime Devos
2022-03-14 22:30       ` paul via Guix-patches via
2022-03-06 10:31     ` Maxime Devos
2022-03-14 22:34       ` paul via Guix-patches via
2022-03-06 10:32     ` Maxime Devos
2022-03-14 22:35       ` paul via Guix-patches via
2022-03-06 10:17   ` [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter Maxime Devos
2022-03-14 22:12     ` paul via Guix-patches via
2022-03-06 10:18   ` Maxime Devos
2022-03-14 22:14     ` paul via Guix-patches via
2022-03-06 10:28   ` Maxime Devos
2022-03-14 22:27     ` paul via Guix-patches via
2022-03-14 22:36 ` [bug#53019] [PATCH 1/9] " Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 2/9] yyy Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 3/9] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 4/9] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 5/9] gnu: Add python-pytest-cov-3.0 Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 6/9] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 7/9] gnu: python-pypika-tortoise: Update to 0.1.3 Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 8/9] gnu: python-tortoise-orm: Update to 0.18.1 Giacomo Leidi via Guix-patches via
2022-03-14 22:36   ` [bug#53019] [PATCH 9/9] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2022-03-14 22:41 ` [bug#53019] Apologies for the noise paul via Guix-patches via
2022-03-14 22:41 ` [bug#53019] [PATCH 1/8] gnu: Add python-codeclimate-test-reporter Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 2/8] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 3/8] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 4/8] gnu: Add python-pytest-cov-3.0 Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 5/8] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 6/8] gnu: python-pypika-tortoise: Update to 0.1.3 Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 7/8] gnu: python-tortoise-orm: Update to 0.18.1 Giacomo Leidi via Guix-patches via
2022-03-14 22:41   ` [bug#53019] [PATCH 8/8] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2022-05-31 22:38 ` [bug#53019] (no subject) goodoldpaul--- via Guix-patches via
2022-07-01 21:32 ` [bug#53019] [PATCHES] Add aerich goodoldpaul--- via Guix-patches via
2022-07-01 21:32 ` [bug#53019] [PATCH 1/6] gnu: Add python-codeclimate-test-reporter Giacomo Leidi via Guix-patches via
2022-07-01 21:32   ` [bug#53019] [PATCH 2/6] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2022-07-30 21:04     ` Maxime Devos
2022-07-01 21:32   ` [bug#53019] [PATCH 3/6] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2022-07-30 21:02     ` Maxime Devos
2022-10-10 20:50       ` goodoldpaul--- via Guix-patches via
2022-07-01 21:33   ` [bug#53019] [PATCH 4/6] gnu: Add python-pytest-cov-3.0 Giacomo Leidi via Guix-patches via
2022-07-30 21:09     ` Maxime Devos
2022-07-30 22:52       ` goodoldpaul--- via Guix-patches via
2022-07-30 23:13         ` Maxime Devos
2022-10-10 21:29           ` goodoldpaul--- via Guix-patches via
2022-07-01 21:33   ` [bug#53019] [PATCH 5/6] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-07-01 21:33   ` [bug#53019] [PATCH 6/6] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2022-07-30 21:09   ` [bug#53019] [PATCH 1/6] gnu: Add python-codeclimate-test-reporter Maxime Devos
2022-10-10 20:51     ` goodoldpaul--- via Guix-patches via
2022-10-10 21:30 ` [bug#53019] [PATCH 1/4] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2022-10-10 21:30   ` [bug#53019] [PATCH 2/4] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2022-10-10 21:30   ` [bug#53019] [PATCH 3/4] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2022-10-10 21:30   ` [bug#53019] [PATCH 4/4] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2023-01-04 15:56 ` [bug#53019] [PATCHES] Add aerich goodoldpaul--- via Guix-patches via
2023-01-04 16:08 ` [bug#53019] [PATCHv2 1/4] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2023-01-04 16:08   ` [bug#53019] [PATCHv2 2/4] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2023-01-04 16:08   ` [bug#53019] [PATCHv2 3/4] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2023-01-04 16:08   ` [bug#53019] [PATCHv2 4/4] gnu: Add python-aerich Giacomo Leidi via Guix-patches via
2023-04-12 21:50 ` [bug#53019] [PATCHv3 1/4] gnu: Add python-coverage-5.5 Giacomo Leidi via Guix-patches via
2023-04-12 21:50   ` [bug#53019] [PATCHv3 2/4] gnu: python-codecov: Update to 2.1.12 Giacomo Leidi via Guix-patches via
2023-04-12 21:50   ` [bug#53019] [PATCHv3 3/4] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2023-04-12 21:50   ` Giacomo Leidi via Guix-patches via [this message]
2023-10-29 12:06 ` [bug#53019] [53019]: Add aerich - Rebase on current master paul via Guix-patches via
2023-10-29 12:07 ` [bug#53019] [PATCH v4 1/2] gnu: Add python-ddlparse Giacomo Leidi via Guix-patches via
2023-10-29 12:07   ` [bug#53019] [PATCH v4 2/2] gnu: Add aerich Giacomo Leidi via Guix-patches via
2023-10-30 11:26     ` Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230412215016.6552-4-goodoldpaul@autistici.org \
    --to=guix-patches@gnu.org \
    --cc=53019@debbugs.gnu.org \
    --cc=goodoldpaul@autistici.org \
    --cc=lars@6xq.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).