From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki Subject: [PATCH 08/20] gnu: Add python-sure Date: Fri, 14 Apr 2017 13:13:08 +0300 Message-ID: <20170414101320.11755-8-fredmanglis@gmail.com> References: <20170414101320.11755-1-fredmanglis@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyyE5-0000r2-55 for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyyE2-0005OX-Ty for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:13 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:35201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyyE2-0005O8-Nv for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:10 -0400 Received: by mail-wr0-x243.google.com with SMTP id l44so11942331wrc.2 for ; Fri, 14 Apr 2017 03:13:10 -0700 (PDT) In-Reply-To: <20170414101320.11755-1-fredmanglis@gmail.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 Cc: pjotr2017@thebird.nl * gnu/package/python.scm (python-sure): New variable. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9cb27d8..951b7c7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14149,3 +14149,33 @@ scenarios") (define-public python2-urllib3-1.12 (package-with-python2 python-urllib3-1.12)) + +(define-public python-sure + (package + ;; httpretty has a hard requirement for sure==1.2.24 + (name "python-sure") + (version "1.2.24") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sure" version)) + (sha256 + (base32 + "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-mock" ,python-mock) + ("python-six" ,python-six))) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page + "http://github.com/gabrielfalcao/sure") + (synopsis + "Sure is an automated testing library in python for python") + (description + "Sure is a python library for python that leverages a DSL for writing assertions. +Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}") + (license license:gpl3))) + +(define-public python2-sure + (package-with-python2 python-sure)) -- 2.10.2