diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/httpbin/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/httpbin/default.nix | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/httpbin/default.nix b/nixpkgs/pkgs/development/python-modules/httpbin/default.nix index cc15e00748c0..48de08ee3b4c 100644 --- a/nixpkgs/pkgs/development/python-modules/httpbin/default.nix +++ b/nixpkgs/pkgs/development/python-modules/httpbin/default.nix @@ -1,18 +1,26 @@ { lib -, brotlicffi , buildPythonPackage -, decorator , fetchPypi -, flask -, flask-limiter +, pythonRelaxDepsHook + +# build-system +, setuptools + +# dependencies +, brotlicffi +, decorator , flasgger -, itsdangerous -, markupsafe -, raven +, flask +, greenlet , six -, pytestCheckHook -, setuptools , werkzeug + +# optional-dependencies +, gunicorn +, gevent + +# tests +, pytestCheckHook }: buildPythonPackage rec { @@ -27,20 +35,29 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "greenlet" ]; propagatedBuildInputs = [ brotlicffi decorator flask - flask-limiter flasgger - itsdangerous - markupsafe - raven + greenlet six werkzeug - ] ++ raven.optional-dependencies.flask; + ]; + + passthru.optional-dependencies = { + mainapp = [ + gunicorn + gevent + ]; + }; nativeCheckInputs = [ pytestCheckHook |