From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add python-pycontracts. Date: Thu, 12 Jan 2017 10:32:57 +0100 Message-ID: <20170112093257.27397-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRbkw-0001g7-8z for guix-devel@gnu.org; Thu, 12 Jan 2017 04:33:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRbks-0001tT-CY for guix-devel@gnu.org; Thu, 12 Jan 2017 04:33:14 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:47577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRbks-0001r3-5g for guix-devel@gnu.org; Thu, 12 Jan 2017 04:33:10 -0500 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-pycontracts, python2-pycontracts): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4dc284d03..1cd4f168a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2201,6 +2201,38 @@ have failed since the last commit or what tests are currently failing.") (define-public python2-testrepository (package-with-python2 python-testrepository)) +(define-public python-pycontracts + (package + (name "python-pycontracts") + (version "1.7.15") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyContracts" version)) + (sha256 + (base32 + "0sf41nccy5ihymiab31sfc4ylxd87fvvhbzqd8lhw7fnryskmgr4")))) + (build-system python-build-system) + (propagated-inputs + `(("python-decorator" ,python-decorator) + ("python-pyparsing" ,python-pyparsing) + ("python-six" ,python-six))) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page "http://andreacensi.github.com/contracts/") + (synopsis "Checks declared constraints on function parameters and return +values") + (description "PyContracts is a Python package that allows to declare +constraints on function parameters and return values. Contracts can be +specified using Python3 annotations, in a decorator, or inside a docstring +:type: and :rtype: tags. PyContracts supports a basic type system, variables +binding, arithmetic constraints, and has several specialized contracts +(notably for Numpy arrays), as well as an extension API.") + (license license:lgpl3))) + +(define-public python2-pycontracts + (package-with-python2 python-pycontracts)) + (define-public python-coverage (package (name "python-coverage")