From d44a618384a639f9207a4fca62b039758d3e9b57 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 1 Sep 2016 21:51:49 +0300 Subject: gnu: python-requests-mock: Update to 1.0.0. * gnu/packages/openstack.scm (python-requests-mock): Update to 1.0.0. [inputs]: Remove python-setuptools. Move python-mock ... [native-inputs]: ... to here. Add python-discover, python-fixtures, python-sphinx, python-testrepostory, python-testtools. [properties]: Add python2-variant. (python2-requests-mock): inherit stripped variant. [native-inputs]: Use python2-setuptools. --- gnu/packages/openstack.scm | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 6ae1275c96..8474904265 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -237,31 +237,42 @@ (define-public python2-os-testr (define-public python-requests-mock (package (name "python-requests-mock") - (version "0.7.0") + (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "requests-mock" version)) (sha256 (base32 - "0s6mrpiv2w0km39qvl1pq2d56xblnm57p369qdp5j1a55ncica7f")))) + "0gcjjwsckhqixyffflc54i59x41jnbb37bli077vabii1bjmkin6")))) (build-system python-build-system) (propagated-inputs - `(("python-requests" ,python-requests) - ("python-six" ,python-six))) + `(("python-requests" ,python-requests) + ("python-six" ,python-six))) (inputs - `(("python-mock" ,python-mock) - ("python-pbr" ,python-pbr) - ("python-setuptools" ,python-setuptools))) + `(("python-pbr" ,python-pbr))) + (native-inputs + `(("python-discover" ,python-discover) + ("python-fixtures" ,python-fixtures) + ("python-mock" ,python-mock) + ("python-sphinx" ,python-sphinx) + ("python-testrepository" ,python-testrepository) + ("python-testtools" ,python-testtools))) (home-page "https://requests-mock.readthedocs.org/") (synopsis "Mock out responses from the requests package") (description "This module provides a building block to stub out the HTTP requests portions of your testing code.") - (license asl2.0))) + (license asl2.0) + (properties `((python2-variant . ,(delay python2-requests-mock)))))) (define-public python2-requests-mock - (package-with-python2 python-requests-mock)) + (let ((base (package-with-python2 + (strip-python2-variant python-requests-mock)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) (define-public python-stevedore (package -- cgit v1.2.3