1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/python-modules/httpbin/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2017-04-27 07:24:07 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
2018-01-20 10:52:36 +00:00
, fetchpatch
2017-04-27 07:24:07 +01:00
, flask
2018-01-20 10:52:36 +00:00
, flask-common
, flask-limiter
2017-04-27 07:24:07 +01:00
, markupsafe
, decorator
, itsdangerous
2018-01-20 10:52:36 +00:00
, raven
2017-10-25 19:04:35 +01:00
, six
2018-01-20 10:52:36 +00:00
, brotlipy
2017-10-25 19:04:35 +01:00
}:
2017-04-27 07:24:07 +01:00
buildPythonPackage rec {
pname = "httpbin";
2017-12-30 11:23:32 +00:00
version = "0.6.2";
2017-04-27 07:24:07 +01:00
src = fetchPypi {
inherit pname version;
2017-12-30 11:23:32 +00:00
sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
2017-04-27 07:24:07 +01:00
};
2018-01-20 10:52:36 +00:00
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 ];
2017-04-27 07:24:07 +01:00
2017-10-25 19:04:35 +01:00
# No tests
doCheck = false;
2017-04-27 07:24:07 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/kennethreitz/httpbin;
description = "HTTP Request & Response Service";
license = licenses.mit;
};
}