From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: [PATCH 3/4] gnu: Add python-mock. Date: Sat, 24 May 2014 01:35:44 -0500 Message-ID: <87y4xrpttr.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo5VP-0001ph-HK for Guix-devel@gnu.org; Sat, 24 May 2014 02:32:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wo5VJ-0008IE-Qz for Guix-devel@gnu.org; Sat, 24 May 2014 02:32:31 -0400 Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:57535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo5VJ-0008I6-Kz for Guix-devel@gnu.org; Sat, 24 May 2014 02:32:25 -0400 Received: by mail-ie0-f181.google.com with SMTP id rp18so4397624iec.12 for ; Fri, 23 May 2014 23:32:25 -0700 (PDT) Received: from cooper.gmail.com (chippewa-nat.cray.com. [136.162.34.1]) by mx.google.com with ESMTPSA id qh3sm9834106igb.17.2014.05.23.23.32.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 23:32:24 -0700 (PDT) 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel@gnu.org --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0003-gnu-Add-python-mock.patch >From 398659d4465286ca7ea8d62bb02b04c14c2c4bd9 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 20 May 2014 08:31:00 -0500 Subject: [PATCH 3/4] gnu: Add python-mock. * gnu/packages/python.scm (python-mock): New variable. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 53d1f3e..b15e5b6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -317,6 +317,31 @@ API for locking files.") (define-public python2-lockfile (package-with-python2 python-lockfile)) +(define-public python-mock + (package + (name "python-mock") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/m/mock/" + "mock-" version ".tar.gz")) + (sha256 + (base32 + "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) + (build-system python-build-system) + (arguments '(#:test-target "check")) + (home-page "http://code.google.com/m/mock/") + (synopsis "A Python Mocking and Patching Library for Testing") + (description + "Mock is a library for testing in Python. It allows you to replace parts +of your system under test with mock objects and make assertions about how they +have been used.") + (license expat))) + +(define-public python2-mock + (package-with-python2 python-mock)) + (define-public python-setuptools (package -- 1.7.9.5 --=-=-= -- Eric Bavier --=-=-=--