From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KJTXG1Vov2LX2gAAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 23:34:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UB6yG1Vov2IzAgEA9RJhRA (envelope-from ) for ; Fri, 01 Jul 2022 23:34:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 102834144D for ; Fri, 1 Jul 2022 23:34:13 +0200 (CEST) Received: from localhost ([::1]:54606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7OHE-0007Xa-7n for larch@yhetil.org; Fri, 01 Jul 2022 17:34:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7OH6-0007TP-AY for guix-patches@gnu.org; Fri, 01 Jul 2022 17:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7OH6-00026Q-1T for guix-patches@gnu.org; Fri, 01 Jul 2022 17:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7OH5-0007g1-V6 for guix-patches@gnu.org; Fri, 01 Jul 2022 17:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 6/6] gnu: Add python-aerich. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Jul 2022 21:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.165671119929417 (code B ref 53019); Fri, 01 Jul 2022 21:34:03 +0000 Received: (at 53019) by debbugs.gnu.org; 1 Jul 2022 21:33:19 +0000 Received: from localhost ([127.0.0.1]:39225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7OGM-0007eJ-R3 for submit@debbugs.gnu.org; Fri, 01 Jul 2022 17:33:19 -0400 Received: from confino.investici.org ([93.190.126.19]:47499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7OGJ-0007dT-Ql for 53019@debbugs.gnu.org; Fri, 01 Jul 2022 17:33:16 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4LZT2g28zMz110d; Fri, 1 Jul 2022 21:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1656711195; bh=o1KqDoeG+WCYC8XmEoR7WGq15vyYzBMgQ7OF+/nnaw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bOhM1999mVsg/BvMAuKV53KTBISN/XR+rhPS6yfTGRWpfNWjbBqUTZTSOYIS3/gfO dTKzLaQpxcBWTFGwkXYb3ta2Len7XuCpSxUc4GYNRCvnSQphYJeAuqiwGbrhYxYgl4 J3WbWt5AzcFU1sdoMGuiM3Wmt/fKA1De6XKIFdT0= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4LZT2g16FTz1109; Fri, 1 Jul 2022 21:33:15 +0000 (UTC) Date: Fri, 1 Jul 2022 23:33:02 +0200 Message-Id: <20220701213302.13234-6-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220701213302.13234-1-goodoldpaul@autistici.org> References: <20220701213302.13234-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656711253; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=o1KqDoeG+WCYC8XmEoR7WGq15vyYzBMgQ7OF+/nnaw4=; b=CexuAL9N9JoCGiWdRkfPP/Zr+qzUPQWsBLPIJcXdPpVUFb+LK68WG7msExEVjwFI0E89IS rBkLhrhms2IEuxvBXABmeXJGoqT/0L24LvIV+O45g7Z5gpgNuSDBiYw/TBKg3F0C/luFvp Vmrwfzr1VzSnKIcahr5iQqllMgTZXmmoA5LJV59Cnv36GY0p/jhhmz7WTjG2NUraorCqhn iGDN0jWBMlYUg+OmSTPZnihl/L0Diif2ful7uQbWLbkQWQQRnIODOVGOj+9+yFsthRbeF1 83k3WOV/bl6SRcUQ1nkRGhYpEX+BifQQSzi4T3VGJnK3PiaH1m7TCiuCO8WBng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656711253; a=rsa-sha256; cv=none; b=j5pnWSwwnDpi+YTKz8xaA5JKkdCyHJjLTldKxSLXEBwI3/vBxppMHDCsWP2VkkNUIDoNLL HGMu7CbYKUZXR7BpRr/wKgiKPEHyNU1YFf85jsPpzmuLoQXUt7shehsje+ZoUHEku4Y3pe J7cBbtlm6jISp8pAhpn6+iaQqUH/Jope5Q20fn/v0ze1HKWdXlVJ4+NM88FWwVWS3U4qmI 20k4BmHD5HD1yXyI99Id57VS5b9//PTwY8dhZpLXwCXcnJssLMepkCu5PHziHW+ivT31RB O0zXyZ0PdKLehCzy6XSA4BnX6S+4h40CzM0kNBi1WwH9nCuYUqKLRmXhRJYSOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=bOhM1999; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=bOhM1999; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 102834144D X-Spam-Score: -1.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1ZEmWAxjlq+U * gnu/packages/databases.scm (python-aerich): New variable. --- gnu/packages/databases.scm | 63 +++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 9e9b584f7a..b125e87245 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -56,7 +56,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Zhu Zihao -;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -121,6 +121,7 @@ (define-module (gnu packages databases) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) #:use-module (gnu packages onc-rpc) + #:use-module (gnu packages openstack) #:use-module (gnu packages pantheon) #:use-module (gnu packages parallel) #:use-module (gnu packages pcre) @@ -3002,6 +3003,66 @@ (define-public python-tortoise-orm with relational data.") (license license:asl2.0))) +(define-public aerich + (package + (name "aerich") + (version "0.6.3") + (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 + "1ndkl8vvn6bxh19s26k3p5mlk1sk4ziw73c07av08va6cfp5ln0j")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'generate-setup.py + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; FIXME: 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.36.1