From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IMzNBOcnN2RLxAAASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 23:51:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QJzoA+cnN2RvmwAAG6o9tA (envelope-from ) for ; Wed, 12 Apr 2023 23:51:35 +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 AB7693C945 for ; Wed, 12 Apr 2023 23:51:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmiMt-0004Fm-Mr; Wed, 12 Apr 2023 17:51:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmiMp-0004DY-Be for guix-patches@gnu.org; Wed, 12 Apr 2023 17:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmiMo-0007ar-IJ for guix-patches@gnu.org; Wed, 12 Apr 2023 17:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmiMo-0002B8-E5; Wed, 12 Apr 2023 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCHv3 4/4] gnu: Add python-aerich. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Wed, 12 Apr 2023 21:51:02 +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 , lars@6xq.net X-Debbugs-Original-Xcc: lars@6xq.net Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.16813362338104 (code B ref 53019); Wed, 12 Apr 2023 21:51:02 +0000 Received: (at 53019) by debbugs.gnu.org; 12 Apr 2023 21:50:33 +0000 Received: from localhost ([127.0.0.1]:42010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmiMK-00026Y-B5 for submit@debbugs.gnu.org; Wed, 12 Apr 2023 17:50:32 -0400 Received: from confino.investici.org ([93.190.126.19]:37321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmiMF-00025P-4I for 53019@debbugs.gnu.org; Wed, 12 Apr 2023 17:50:28 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Pxbwx6sCVz110q; Wed, 12 Apr 2023 21:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1681336225; bh=yfa8fHD/GdMJ+ZcATHXdysKtlJspT8v7stTtnAeic88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h8N92aYcGxQ24kVUjBDtYo8EQlnQqHLsLytOs9huVGhqnPlb2y114luroLLtvceRj DSxNFjf0D6NjdVplhe9gAq8wguX0MBp9C3DxV7WYxJvg3P1G/8qOCo7juL8em01w8/ cLehD+KbgfOr4KC7xkHQDmuUkcqSFm9XMIVX23eU= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Pxbwx6Lzyz110j; Wed, 12 Apr 2023 21:50:25 +0000 (UTC) Date: Wed, 12 Apr 2023 23:50:16 +0200 Message-Id: <20230412215016.6552-4-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230412215016.6552-1-goodoldpaul@autistici.org> References: <20230412215016.6552-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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681336294; a=rsa-sha256; cv=none; b=g4VIS5vbilhnH+Hld9uOsPq9iObg6ghdJJVdq2/zDhQeHdz6Gzbx718poP7blA2K4Z6m6U K2ayJGWkHP3+YasXbwC+jh8WBz7a9Di9/NjI34t6hy97T5/AdiZds7uQCmzHNUNXkYO/ri u07p61Crrb4Q2J5f1BtQASVGoloHtnO5vntDu84fz/vnN1PKSx0su+apu++3Km7o9ypFxe fMWqAGvWtaRHROJjxFKBTZMKZAAXYyuzrZxj6zqEhjS9njkXDr0U+z85z3a4qQUNXL6RIB 5kJqAwFc3fNYEcomyvBEV1ei9VEJc26OerMr1WTcrBZdsmfwEfWqVk3lkPQYQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=h8N92aYc; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681336294; 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=yfa8fHD/GdMJ+ZcATHXdysKtlJspT8v7stTtnAeic88=; b=U/19xNAfuaoJSvhitP4btQ1g20fVdjdo7VwKCAfzr5fz2iFi0suGJDHHFCtft6M7ECpXDo mkVlBKWpgTQ/+yp3nHFtwD5JsKhsq18NLZ6no2wUlaUDGw4RscvZTbaHH62QXCq0jDDSL7 Epubn2FZW42ATwVQ1cgmzZRc58cgORuLBW2bd5zsm/hDi0eYoMu1tOpDMewvR2vmeX5o3O ga/tnkEQujGUgJbOfqcHbgtLgYPrOCLAZFZ8bHmo9ZkwXAktHiSgyiVdeht0DXr01FCjdR ezdLOAxO34X7CL94DePG3+pR5aglsn5bPEoef3bYRKl7IeMOsvhyVcWFt+Nx2Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.22 X-Spam-Score: -2.22 X-Migadu-Queue-Id: AB7693C945 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=h8N92aYc; 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"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: eE4ISnqaCQ2F * 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 ;;; Copyright © 2021, 2022 jgart ;;; Copyright © 2023 Felix Gruber +;;; Copyright © 2023 Giacomo Leidi ;;; ;;; 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