ng0 <n...@we.make.ritual.n0.is> writes: > * gnu/packages/python.scm (python-pytest-httpbin-0.0.7): New variable. > --- > gnu/packages/python.scm | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index 5f7f8e0..64135d2 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -1777,6 +1777,28 @@ thread running httpbin and provides your test with the > URL in the fixture.") > ("python2-httpbin" ,python2-httpbin) > ("python2-six" ,python2-six))))) > > +(define-public python-pytest-httpbin-0.0.7 > + (package > + (inherit python-pytest-httpbin) > + (version "0.0.7") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pytest-httpbin" version)) > + (sha256 > + (base32 > + "08ghq923dn33rllip3vap2p9fb680g0i96jdn5lcpfy8amq8mbq3")))))) > + > +(define-public python2-pytest-httpbin-0.0.7 > + (package > + (inherit (package-with-python2 > + (strip-python2-variant python-pytest-httpbin-0.0.7))) > + (inputs `(("python2-setuptools" ,python2-setuptools) > + ("python2-flask" ,python2-flask) > + ("python2-decorator" ,python2-decorator) > + ("python2-httpbin" ,python2-httpbin) > + ("python2-six" ,python2-six))))) > + > (define-public python-pytest-runner > (package > (name "python-pytest-runner") > -- > 2.10.0 > >
I forgot to comment this when I reworked the patch: This is needed for python-requests 2.10.0 and later (current: 2.11.1), however I had to stop at this point for now because pytest needed an update which leads to further problems. All of this is to establish a base for packaging searx, an AGPL3 search engine. -- ng0 For non-prism friendly talk find me on http://www.psyced.org