guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: gnu: Add python-betamax.


From: Leo Famulari
Subject: 03/04: gnu: Add python-betamax.
Date: Mon, 17 Oct 2016 17:56:47 +0000 (UTC)

lfam pushed a commit to branch core-updates
in repository guix.

commit 66d3f50a76df00fffb6f241960c9bab48f91173d
Author: Leo Famulari <address@hidden>
Date:   Sun Oct 16 13:15:46 2016 -0400

    gnu: Add python-betamax.
    
    * gnu/packages/python.scm (python-betamax, python2-betamax): 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 7938f74..85330f8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11082,3 +11082,35 @@ with an associated set of resolve methods that know 
how to fetch data.")
 provide extendible implementations of common aspects of a cloud so that you can
 focus on building massively scalable web applications.")
     (license license:expat)))
+
+(define-public python-betamax
+  (package
+    (name "python-betamax")
+    (version "0.8.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "betamax" version))
+        (sha256
+         (base32
+          "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
+    (build-system python-build-system)
+    (arguments
+     '(;; Many tests fail because they require networking.
+       #:tests? #f))
+    (inputs
+     `(("python-requests" ,python-requests)))
+    (home-page "https://github.com/sigmavirus24/betamax";)
+    (synopsis "Record HTTP interactions with python-requests")
+    (description "Betamax will record your test suite's HTTP interactions and
+replay them during future tests.  It is designed to work with 
python-requests.")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-betamax))))))
+
+(define-public python2-betamax
+  (let ((base (package-with-python2 (strip-python2-variant python-betamax))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]