From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 02:43:44 2020 Received: (at submit) by debbugs.gnu.org; 30 Mar 2020 06:43:45 +0000 Received: from localhost ([127.0.0.1]:60389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIo9A-0005Cl-GO for submit@debbugs.gnu.org; Mon, 30 Mar 2020 02:43:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:38562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIo98-0005Cd-6u for submit@debbugs.gnu.org; Mon, 30 Mar 2020 02:43:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49556) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIo95-0002ot-Vw for guix-patches@gnu.org; Mon, 30 Mar 2020 02:43:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIo94-00075n-7b for guix-patches@gnu.org; Mon, 30 Mar 2020 02:43:39 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:51214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIo93-00074o-NR for guix-patches@gnu.org; Mon, 30 Mar 2020 02:43:38 -0400 Received: by mail-wm1-x331.google.com with SMTP id c187so18753124wme.1 for ; Sun, 29 Mar 2020 23:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leibniz-psychology-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=ehaSj7ujEHulRR4pzBHAj/3VJJiXj12BEZJQsagcR6U=; b=dfg+OSRtnAUrLdHKosbCAhMtw3LXuq6A3WuCkAYBvbu+H0xUBNy4yn+YpqxyCuU2iR f/wlThrYpG6RlFGKu1OEP4FM0dgNg9Bc6hugj+Cd5x9XJ+9j/LHrSRTidLkUzQDTp2c2 mxJuSXslF/sfs+R3hJU/EfeiV1Y9FqhroQ1iv9qvQapyikgy84ky9h8MYJRzFAAyKcxR a8hOBOam5b6YLIVxb4TGIK+F5+BSGJkSo/K/pfJvFlmpOAjhBDHXDA5c3QopDNTFPpbA /194VDXa6NNc+z+XV6weZVBwDeJh124dDY9/Oo8BoH6Q83DP8hMwh6wix2bfVsH8yJEn jOgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=ehaSj7ujEHulRR4pzBHAj/3VJJiXj12BEZJQsagcR6U=; b=gJQ2peQ4I1vnjUAtOP0V1HgENMUCbg1nlSMOroT0PsbpIqvOT57oMrLODd9qdhG17g 38be/Ri5v4XGiMnwmDxc97ujj1sKLf1Md15qoaKx6hGIMRI6HE9/KacLj9RqLDuZqg6K sQbWF4FAk12dOgfeVcjvilnJk8jKCozv3ES5preeDqrqhDa5gtm0Y+cjtmLGE886R6Ql HzFngg40ekARqweIlwV/0wMVea3o/gzMsv3JSUXlAFIONhmkmauoU+2yZXNgaAPHY0Gg dLUWtF1eulLvySUPJnYf5wsZbnCh4sYKXTu7TFHQncwur9ZAIXPBm60bb5NgOkXA2grS VvGA== X-Gm-Message-State: ANhLgQ3OSabKFDj47aoXRs4hrzM+vp/94l2oDgp7himT9NhKQPNrDeEr xXaK97b3DP4cXNcnKnZrcfMPQ0d74Z/pPxNZZaGZSAAL4LcP1K6itlp5rEHTlLURclaIMXXxNlo 8UItWx4t5P7zd3eYKIrNje1tUO2chF0pSzev3ANSJTzkrMCDmMxSIDyLiPakBBLSpTjeIk8dYs7 id1AMfRIQ= X-Google-Smtp-Source: ADFU+vuZ7Sup0gEUhzQRNP0u1RP+HvklmE0z/H+3s0pv4K82XhysPN7Bj3H1GQS0bOfOSoeUO4tUjQ== X-Received: by 2002:a05:600c:21cb:: with SMTP id x11mr8842575wmj.111.1585550616197; Sun, 29 Mar 2020 23:43:36 -0700 (PDT) Received: from localhost (dynamic-2a01-0c23-842e-4100-c994-3310-bb54-8fc0.c23.pool.telefonica.de. [2a01:c23:842e:4100:c994:3310:bb54:8fc0]) by smtp.gmail.com with ESMTPSA id o16sm17765832wrw.75.2020.03.29.23.43.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 23:43:35 -0700 (PDT) Date: Mon, 30 Mar 2020 08:43:34 +0200 From: Lars-Dominik Braun To: guix-patches@gnu.org Subject: [PATCH] Add python-tortoise-orm Message-ID: <20200330064334.GB3329@zpidnp36> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::331 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Yylu36WmvOXNoKYn Content-Type: multipart/mixed; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, this patchset adds python-tortoise-orm and dependencies. Cheers, Lars --Dxnq1zWXvFF0Q93v Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-python-aiounittest.patch" Content-Transfer-Encoding: quoted-printable =46rom 909bbc3a8bfc4ba83bd1df5803de8ad567916783 Mon Sep 17 00:00:00 2001 =46rom: Lars-Dominik Braun Date: Mon, 30 Mar 2020 08:28:15 +0200 Subject: [PATCH 1/5] gnu: Add python-aiounittest * gnu/packages/check.scm (python-aiounittest): New variable --- gnu/packages/check.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 1b60b99ce1..e951c76737 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2509,3 +2509,25 @@ system. The code under test requires no modificatio= n to work with pyfakefs.") =20 (define-public python2-pyfakefs (package-with-python2 python-pyfakefs)) + +(define-public python-aiounittest + (package + (name "python-aiounittest") + (version "1.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiounittest" version)) + (sha256 + (base32 + "1q4bhmi80smaa1lknvdna0sx3915naczlfna1fp435nf6cjyrjl1")))) + (build-system python-build-system) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-nose" ,python-nose))) + (home-page + "https://github.com/kwarunek/aiounittest") + (synopsis "Test asyncio code more easily") + (description "The aiounittest is a helper library to ease of your pain= (and +boilerplate), when writing a test of the asynchronous code (asyncio).") + (license license:expat))) --=20 2.20.1 --Dxnq1zWXvFF0Q93v Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0002-gnu-Add-python-aiosqlite.patch" Content-Transfer-Encoding: quoted-printable =46rom dc6c1301afbd581c6f2107146f254cf5ba2f11e6 Mon Sep 17 00:00:00 2001 =46rom: Lars-Dominik Braun Date: Mon, 30 Mar 2020 08:32:30 +0200 Subject: [PATCH 2/5] gnu: Add python-aiosqlite * gnu/packages/databases.scm (python-aiosqlite): New variable. --- gnu/packages/databases.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 9e60074dad..25c4fbc5bb 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -2716,6 +2716,29 @@ translate the complete SQLite API into Python.") (define-public python2-apsw (package-with-python2 python-apsw)) =20 +(define-public python-aiosqlite + (package + (name "python-aiosqlite") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiosqlite" version)) + (sha256 + (base32 + "1f3zdldp9zgrw6qz5fsp3wa5zw73cjf139pj4vf24ryv895320jg")))) + (build-system python-build-system) + (native-inputs + `(("python-aiounittest" ,python-aiounittest))) + (home-page "https://github.com/jreese/aiosqlite") + (synopsis + "Asyncio bridge for sqlite3") + (description + "The package aiosqlite replicates the standard sqlite3 module, but wi= th +async versions of all the standard connection and cursor methods, and cont= ext +managers for automatically closing connections.") + (license license:expat))) + (define-public python2-neo4j-driver (package (name "python2-neo4j-driver") --=20 2.20.1 --Dxnq1zWXvFF0Q93v Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0003-gnu-Add-python-pypika.patch" Content-Transfer-Encoding: quoted-printable =46rom ce37a0c106217449df95a3130381f833e77c79c6 Mon Sep 17 00:00:00 2001 =46rom: Lars-Dominik Braun Date: Mon, 30 Mar 2020 08:37:04 +0200 Subject: [PATCH 3/5] gnu: Add python-pypika Not to be confused with python-pika, which is a different package. * gnu/packages/databases.scm (python-pypika): New variable. --- gnu/packages/databases.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 25c4fbc5bb..669b8f9bc6 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3047,6 +3047,27 @@ transforms idiomatic python function calls to well-f= ormed SQL queries.") (define-public python2-sql (package-with-python2 python-sql)) =20 +(define-public python-pypika + (package + (name "python-pypika") + (version "0.36.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyPika" version)) + (sha256 + (base32 + "0qzn5vygirg52dlizm6ayzdc5llq8p2krrx0kymr236lrz89wqp8")))) + (build-system python-build-system) + (native-inputs + `(("python-parameterized" ,python-parameterized))) + (home-page "https://github.com/kayak/pypika") + (synopsis "SQL query builder API for Python") + (description + "PyPika is a python SQL query builder that exposes the full richness = of +the SQL language using a syntax that reflects the resulting query.") + (license license:asl2.0))) + (define-public mongo-tools (package (name "mongo-tools") --=20 2.20.1 --Dxnq1zWXvFF0Q93v Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0004-gnu-Add-python-ciso8601.patch" Content-Transfer-Encoding: quoted-printable =46rom a779601922b55eb4d054924fe005cd9d0cf84508 Mon Sep 17 00:00:00 2001 =46rom: Lars-Dominik Braun Date: Mon, 30 Mar 2020 08:39:29 +0200 Subject: [PATCH 4/5] gnu: Add python-ciso8601 * gnu/packages/time.scm (python-ciso8601): New variable. --- gnu/packages/time.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index f4dc8a2ffd..e0ef71d89a 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -235,6 +235,32 @@ datetime module, available in Python 2.3+.") (define-public python2-parsedatetime (package-with-python2 python-parsedatetime)) =20 +(define-public python-ciso8601 + (package + (name "python-ciso8601") + (version "2.1.3") + (source + (origin + (method git-fetch) + ;; Pypi package lacks file tests.py + (uri (git-reference + (url "https://github.com/closeio/ciso8601.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0g1aiyc1ayh0rnibyy416m5mmck38ksgdm3jsy0z3rxgmgb24951")))) + (build-system python-build-system) + (native-inputs + `(("python-pytz" ,python-pytz))) + (home-page "https://github.com/closeio/ciso8601") + (synopsis + "Fast ISO8601 date time parser") + (description + "The package ciso8601 converts ISO 8601 or RFC 3339 date time strings= into +Python datetime objects.") + (license expat))) + (define-public python-tzlocal (package (name "python-tzlocal") --=20 2.20.1 --Dxnq1zWXvFF0Q93v Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0005-gnu-Add-python-tortoise-orm.patch" Content-Transfer-Encoding: quoted-printable =46rom 5ecd1b998615956436cd3b0b37c80f7bb149e88a Mon Sep 17 00:00:00 2001 =46rom: Lars-Dominik Braun Date: Mon, 30 Mar 2020 08:41:12 +0200 Subject: [PATCH 5/5] gnu: Add python-tortoise-orm * gnu/packages/databases.scm (python-tortoise-orm): New variable. --- gnu/packages/databases.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 669b8f9bc6..a3b78932a3 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -2205,6 +2205,41 @@ can autogenerate peewee models using @code{pwiz}, a = model generator.") (define-public python2-peewee (package-with-python2 python-peewee)) =20 +(define-public python-tortoise-orm + (package + (name "python-tortoise-orm") + (version "0.16.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tortoise-orm" version)) + (sha256 + (base32 + "01hbvfyxs2qd1mjc96aipwsdxxhydw8ww686r4gsf87bl6f98dvz")))) + (build-system python-build-system) + ;; Disable tests for now. They pull in a lot of dependencies. + (arguments `(#:tests? #f)) + (native-inputs + `(("python-ciso8601" ,python-ciso8601) + ("python-asynctest" ,python-asynctest) + ("python-nose2" ,python-nose2))) + (propagated-inputs + `(("python-aiosqlite" ,python-aiosqlite) + ("python-pypika" ,python-pypika) + ("python-typing-extensions" + ,python-typing-extensions))) + (home-page + "https://github.com/tortoise/tortoise-orm") + (synopsis + "Easy async ORM for python, built with relations in mind") + (description + "Tortoise ORM is an easy-to-use asyncio ORM (Object Relational Mapper) +inspired by Django. Tortoise ORM was build with relations in mind and +admiration for the excellent and popular Django ORM. It=E2=80=99s engrave= d in it=E2=80=99s +design that you are working not with just tables, you work with relational +data.") + (license license:asl2.0))) + (define-public sqlcipher (package (name "sqlcipher") --=20 2.20.1 --Dxnq1zWXvFF0Q93v-- --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEyk+M9DfXR4/aBV/UQhN3ARo3hEYFAl6BlRIACgkQQhN3ARo3 hEbuUAv/c75fay642NpJeCaK1nq4G0kTUiTLQkFAi+dJOi/mU9F5MgAT2D64irZT Eco4R/0r5x2NlzzGzDmUuqtT4TYW+b8UICYMEUnyrHW+UjYyrsuewgLg4ud43qIQ SYvXT8X++2uOFPX0l2UAVMymjPabuRGv0brarWvNV1Sze/my0aZUGbrNFO7cUKD4 tIqylB2jtzvbpHYIETVPntRv9T8GPjEDEgdJITWAOcFbtiN509j+iMPZhV+B82PO xGb73mKbEzMy1qwLk1ovFdE87ykCbnWB+wtiHe0gRxN9Bo/Cz6NgEe3aagngZAcY VLebXgEH1ejvS8SVwl+zkKEKdGDPbYNisRnlrPZ/mb4b/c1+1AaWkZGv3WfafNTU enqaKvtUQ7rndWtvghhF/L/23xhiEeTL9U/RUjKSXRHi7EsBixdKLEVdkpySQZm5 BhYcU2kWS1RRrHUgHEFVNd5nUrDTwhObjFC1wqXV1skOWueblnyqbJGFvZccxbVT 7lwkHfWU =VRkP -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn--