1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, flask
6, flask-common
7, flask-limiter
8, markupsafe
9, decorator
10, itsdangerous
11, raven
12, six
13, brotlipy
14}:
15
16buildPythonPackage rec {
17 pname = "httpbin";
18 version = "0.6.2";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
23 };
24
25 patches = [
26 # https://github.com/kennethreitz/httpbin/issues/403
27 # https://github.com/kennethreitz/flask-common/issues/7
28 # https://github.com/evansd/whitenoise/issues/166
29 (fetchpatch {
30 url = "https://github.com/javabrett/httpbin/commit/5735c888e1e51b369fcec41b91670a90535e661e.patch";
31 sha256 = "167h8mscdjagml33dyqk8nziiz3dqbggnkl6agsirk5270nl5f7q";
32 })
33 ];
34
35 propagatedBuildInputs = [ brotlipy flask flask-common flask-limiter markupsafe decorator itsdangerous raven six ];
36
37 # No tests
38 doCheck = false;
39
40 meta = with stdenv.lib; {
41 homepage = https://github.com/kennethreitz/httpbin;
42 description = "HTTP Request & Response Service";
43 license = licenses.mit;
44 };
45}