2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, brotlipy
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, decorator
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, flask-limiter
|
|
|
|
, itsdangerous
|
2022-02-10 20:34:41 +00:00
|
|
|
, markupsafe
|
2020-04-24 23:36:52 +00:00
|
|
|
, raven
|
|
|
|
, six
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpbin";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "0.7.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
brotlipy
|
|
|
|
flask
|
|
|
|
flask-limiter
|
|
|
|
markupsafe
|
|
|
|
decorator
|
|
|
|
itsdangerous
|
|
|
|
raven
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"test_httpbin.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests seems to be outdated
|
|
|
|
"test_anything"
|
|
|
|
"test_get"
|
|
|
|
"test_redirect_n_equals_to_1"
|
|
|
|
"test_redirect_n_higher_than_1"
|
|
|
|
"test_redirect_to_post"
|
|
|
|
"test_relative_redirect_n_equals_to_1"
|
|
|
|
"test_relative_redirect_n_higher_than_1"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"httpbin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "HTTP Request and Response Service";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kennethreitz/httpbin";
|
|
|
|
license = licenses.mit;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|