Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / httpbin / default.nix
blob076babe49b462d09762e2588770517237a1b3e42
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonRelaxDepsHook
6 # build-system
7 , setuptools
9 # dependencies
10 , brotlicffi
11 , decorator
12 , flasgger
13 , flask
14 , greenlet
15 , six
16 , werkzeug
18 # optional-dependencies
19 , gunicorn
20 , gevent
22 # tests
23 , pytestCheckHook
26 buildPythonPackage rec {
27   pname = "httpbin";
28   version = "0.10.2";
29   format = "pyproject";
31   src = fetchPypi {
32     inherit pname version;
33     hash = "sha256-YyFIaYJhyGhOotK2JM3qhFtAKx/pFzbonfiGQIxjF6k=";
34   };
36   nativeBuildInputs = [
37     setuptools
38     pythonRelaxDepsHook
39   ];
41   pythonRelaxDeps = [
42     "greenlet"
43   ];
45   propagatedBuildInputs = [
46     brotlicffi
47     decorator
48     flask
49     flasgger
50     greenlet
51     six
52     werkzeug
53   ];
55   passthru.optional-dependencies = {
56     mainapp = [
57       gunicorn
58       gevent
59     ];
60   };
62   nativeCheckInputs = [
63     pytestCheckHook
64   ];
66   disabledTests = [
67     # Tests seems to be outdated
68     "test_anything"
69     "test_get"
70     "test_redirect_n_equals_to_1"
71     "test_redirect_n_higher_than_1"
72     "test_redirect_to_post"
73     "test_relative_redirect_n_equals_to_1"
74     "test_relative_redirect_n_higher_than_1"
75   ];
77   pythonImportsCheck = [
78     "httpbin"
79   ];
81   meta = with lib; {
82     description = "HTTP Request and Response Service";
83     homepage = "https://github.com/psf/httpbin";
84     license = licenses.mit;
85     maintainers = with maintainers; [ ];
86   };