From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRJdx-0001EY-G5 for guix-patches@gnu.org; Sat, 01 Jul 2017 10:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRJdu-0001a7-Bo for guix-patches@gnu.org; Sat, 01 Jul 2017 10:45:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRJdu-0001a3-8U for guix-patches@gnu.org; Sat, 01 Jul 2017 10:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dRJdu-0007v2-1Y for guix-patches@gnu.org; Sat, 01 Jul 2017 10:45:02 -0400 Subject: [bug#27548] [PATCH] gnu: Add python-xenon Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRJdD-0001CS-GM for guix-patches@gnu.org; Sat, 01 Jul 2017 10:44:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRJdA-000160-9q for guix-patches@gnu.org; Sat, 01 Jul 2017 10:44:19 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:32924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRJdA-00012v-2G for guix-patches@gnu.org; Sat, 01 Jul 2017 10:44:16 -0400 Received: by mail-wm0-x242.google.com with SMTP id j85so12679987wmj.0 for ; Sat, 01 Jul 2017 07:44:13 -0700 (PDT) Received: from localhost.localdomain (41-139-150-138.safaricombusiness.co.ke. [41.139.150.138]) by smtp.gmail.com with ESMTPSA id h16sm25695797wma.14.2017.07.01.07.44.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jul 2017 07:44:10 -0700 (PDT) From: Muriithi Frederick Muriuki Date: Sat, 1 Jul 2017 17:44:20 +0300 Message-Id: <20170701144420.24120-1-fredmanglis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27548@debbugs.gnu.org * gnu/packages/python.scm (python-xenon, python2-xenon) New variables. --- gnu/packages/python.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6e1e289e9..1167b0933 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -15512,3 +15512,49 @@ pure Python module.") (define-public python2-rencode (package-with-python2 python-rencode)) + +(define-public python-xenon + (package + (name "python-xenon") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xenon" version)) + (sha256 + (base32 + "14kby2y48vp3sgwxqlm5d5789yibqwb1qli5fwcmdqg3iayrbklc")))) + (build-system python-build-system) + (native-inputs + `(("python-pyyaml" ,python-pyyaml) + ("python-radon" ,python-radon) + ("python-requests" ,python-requests) + ("python-flake8" ,python-flake8) + ("python-tox" ,python-tox))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'patch-test-requirements + (lambda* (#:key inputs #:allow-other-keys) + ;; Update requirements from dependecy==version + ;; to dependency>=version + (substitute* "requirements.txt" + (("==") ">=") + ((",<1.5.0") "")) + ;; Remove httpretty dependency for tests + (substitute* "setup.py" + (("httpretty") "")) + #t))))) + (home-page "https://xenon.readthedocs.org/") + (synopsis + "Monitor code metrics for Python on your CI server") + (description + "@code{Xenon} is a monitoring tool based on Radon. It monitors code’s +complexity. Ideally, @code{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 +equirements is not met.") + (license license:expat))) + +(define-public python2-xenon + (package-with-python2 python-xenon)) -- 2.13.2