From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 02/16] gnu: Add python-peewee. Date: Sun, 11 Sep 2016 21:58:43 +0300 Message-ID: <20160911185857.2123-3-efraim@flashner.co.il> References: <20160911185857.2123-1-efraim@flashner.co.il> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yB-00030F-7e for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj9y8-00087n-Vh for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:10 -0400 Received: from flashner.co.il ([178.62.234.194]:52843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9y8-00084k-Oy for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:08 -0400 Received: from localhost (85.64.232.168.dynamic.barak-online.net [85.64.232.168]) by flashner.co.il (Postfix) with ESMTPSA id 4FE754039C for ; Sun, 11 Sep 2016 18:59:01 +0000 (UTC) In-Reply-To: <20160911185857.2123-1-efraim@flashner.co.il> 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/databases.scm (python-peewee): New variable. --- gnu/packages/databases.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index fc31653..85bbca1 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -63,6 +63,7 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (guix build-system python) #:use-module (guix build-system cmake) #:use-module (guix utils) #:use-module (srfi srfi-26) @@ -1094,3 +1095,32 @@ trees (LSM), for sustained throughput under random insert workloads.") (synopsis "Lightning memory-mapped database library") (description "Lightning memory-mapped database library.") (license license:openldap2.8))) + +(define-public python-peewee + (package + (name "python-peewee") + (version "2.8.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "peewee" version)) + (sha256 + (base32 + "1605bk11s7aap2q4qyba93rx7yfh8b11kk0cqi08z8klx2iar8yd")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; Fails to import test data + (native-inputs + `(("python-cython" ,python-cython))) + (home-page "https://github.com/coleifer/peewee/") + (synopsis "Small object-relational mapping utility") + (description + "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee +handles converting between pythonic values and those used by databases, so you +can use Python types in your code without having to worry. It has built-in +support for sqlite, mysql and postgresql. If you already have a database, you +can autogenerate peewee models using @code{pwiz}, a model generator.") + (license license:expat))) + +(define-public python2-peewee + (package-with-python2 python-peewee)) -- 2.10.0