aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/httpbin
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/httpbin
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/httpbin')
-rw-r--r--nixpkgs/pkgs/development/python-modules/httpbin/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/httpbin/default.nix b/nixpkgs/pkgs/development/python-modules/httpbin/default.nix
new file mode 100644
index 00000000000..77dc27f1096
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/httpbin/default.nix
@@ -0,0 +1,45 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, fetchpatch
+, flask
+, flask-common
+, flask-limiter
+, markupsafe
+, decorator
+, itsdangerous
+, raven
+, six
+, brotlipy
+}:
+
+buildPythonPackage rec {
+ pname = "httpbin";
+ version = "0.6.2";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
+ };
+
+ patches = [
+ # https://github.com/kennethreitz/httpbin/issues/403
+ # https://github.com/kennethreitz/flask-common/issues/7
+ # https://github.com/evansd/whitenoise/issues/166
+ (fetchpatch {
+ url = "https://github.com/javabrett/httpbin/commit/5735c888e1e51b369fcec41b91670a90535e661e.patch";
+ sha256 = "167h8mscdjagml33dyqk8nziiz3dqbggnkl6agsirk5270nl5f7q";
+ })
+ ];
+
+ propagatedBuildInputs = [ brotlipy flask flask-common flask-limiter markupsafe decorator itsdangerous raven six ];
+
+ # No tests
+ doCheck = false;
+
+ meta = with stdenv.lib; {
+ homepage = https://github.com/kennethreitz/httpbin;
+ description = "HTTP Request & Response Service";
+ license = licenses.mit;
+ };
+}