From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki Subject: [PATCH 20/20] gnu: Add python-xenon Date: Fri, 14 Apr 2017 13:13:20 +0300 Message-ID: <20170414101320.11755-20-fredmanglis@gmail.com> References: <20170414101320.11755-1-fredmanglis@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyyEf-0001NS-ON for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyyEe-0005rR-Mz for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:49 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyyEe-0005rF-GV for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:48 -0400 Received: by mail-wm0-x241.google.com with SMTP id d79so17172991wmi.2 for ; Fri, 14 Apr 2017 03:13:48 -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/packages/python.scm (python-xenon): New variable. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fe911de..a0dc4fb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14463,3 +14463,36 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot (define-public python2-requests-2.10.0 (package-with-python2 python-requests-2.10.0)) + +(define-public python-xenon + (package + (name "python-xenon") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xenon" version)) + (sha256 + (base32 + "1c03nis488ls50cgcq7ghbj55nxsi6a9683lsvg6z6vaj4smc8g8")))) + (build-system python-build-system) + (native-inputs + `(("python-pyyaml" ,python-pyyaml-3.11) + ("python-radon" ,python-radon) + ("python-requests" ,python-requests-2.10.0) + ("python-pyyaml" ,python-pyyaml) + ("python-httpretty" ,python-httpretty) + ("python-flake8" ,python-flake8) + ("python-tox" ,python-tox))) + (home-page "https://xenon.readthedocs.org/") + (synopsis + "Monitor code metrics for Python on your CI server") + (description + "Xenon is a monitoring tool based on Radon. It monitors code’s complexity. Ideally, + Xenon is run every time code is committed. Through command line options, various + thresholds can be set for the complexity of code. It will fail (i.e. it will exit with + a non-zero exit code) when any of these requirements is not met") + (license license:expat))) + +(define-public python2-xenon + (package-with-python2 python-xenon)) -- 2.10.2