diff options
Diffstat (limited to 'pkgs/development/python-modules/httpbin/default.nix')
-rw-r--r-- | pkgs/development/python-modules/httpbin/default.nix | 55 |
1 files changed, 24 insertions, 31 deletions
diff --git a/pkgs/development/python-modules/httpbin/default.nix b/pkgs/development/python-modules/httpbin/default.nix index 076babe49b46..ef9fe211f55c 100644 --- a/pkgs/development/python-modules/httpbin/default.nix +++ b/pkgs/development/python-modules/httpbin/default.nix @@ -1,26 +1,26 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, brotlicffi -, decorator -, flasgger -, flask -, greenlet -, six -, werkzeug + # dependencies + brotlicffi, + decorator, + flasgger, + flask, + greenlet, + six, + werkzeug, -# optional-dependencies -, gunicorn -, gevent + # optional-dependencies + gunicorn, + gevent, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -35,12 +35,9 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools - pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "greenlet" - ]; + pythonRelaxDeps = [ "greenlet" ]; propagatedBuildInputs = [ brotlicffi @@ -52,16 +49,14 @@ buildPythonPackage rec { werkzeug ]; - passthru.optional-dependencies = { + optional-dependencies = { mainapp = [ gunicorn gevent ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Tests seems to be outdated @@ -74,14 +69,12 @@ buildPythonPackage rec { "test_relative_redirect_n_higher_than_1" ]; - pythonImportsCheck = [ - "httpbin" - ]; + pythonImportsCheck = [ "httpbin" ]; meta = with lib; { description = "HTTP Request and Response Service"; homepage = "https://github.com/psf/httpbin"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |