depot/third_party/nixpkgs/pkgs/development/python-modules/httpbin/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

65 lines
1.1 KiB
Nix

{ lib
, brotlipy
, buildPythonPackage
, decorator
, fetchPypi
, flask
, flask-limiter
, itsdangerous
, markupsafe
, raven
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "httpbin";
version = "0.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo=";
};
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"
];
pythonImportsCheck = [
"httpbin"
];
meta = with lib; {
description = "HTTP Request and Response Service";
homepage = "https://github.com/kennethreitz/httpbin";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}