From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse Date: Sun, 29 May 2016 19:00:34 +0200 Message-ID: <1464541235-12826-3-git-send-email-h.goebel@crazy-compilers.com> References: <1464541235-12826-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7451-0006rA-DY for guix-devel@gnu.org; Sun, 29 May 2016 13:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b744v-0007F4-Er for guix-devel@gnu.org; Sun, 29 May 2016 13:00:47 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b744u-0007Ew-Vj for guix-devel@gnu.org; Sun, 29 May 2016 13:00:41 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3rHmGc327Sz3hk5k for ; Sun, 29 May 2016 19:00:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3rHmGc2xxLzvh1n for ; Sun, 29 May 2016 19:00:40 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id Ocs3nPD0mO72 for ; Sun, 29 May 2016 19:00:39 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-93-104-104-67.dynamic.mnet-online.de [93.104.104.67]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sun, 29 May 2016 19:00:39 +0200 (CEST) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9964260694 for ; Sun, 29 May 2016 18:54:57 +0200 (CEST) In-Reply-To: <1464541235-12826-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): New variables. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 96163cf..cda4dd3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8831,3 +8831,37 @@ multiple processes (imagine multiprocessing, billiard, futures, celery etc). (define-public python2-tblib (package-with-python2 python-tblib)) + +(define-public python-sqlparse + (package + (name "python-sqlparse") + (version "0.1.19") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sqlparse" version)) + (sha256 (base32 + "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* _ + ;; setup.py-integrated 2to3 only affects the build files, but + ;; py.test is using the source files. So we need to convert them + ;; manually. + (when (zero? (system* "python3")) + (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")) + (zero? (system* "py.test"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/andialbrecht/sqlparse") + (synopsis "Non-validating SQL parser") + (description "sqlparse is a non-validating SQL parser for Python. It +provides support for parsing, splitting and formatting SQL statements.") + (license bsd-3))) + +(define-public python2-sqlparse + (package-with-python2 python-sqlparse)) -- 2.7.4