From 55531cfbfb22a83bd488aafa8bb7e5dc480c89a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:18:16 +0200 Subject: [PATCH] python310Packages.cherrypy: properly declare optional dependencies --- .../python-modules/cherrypy/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index f4272f90d629..6690a913beb2 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -8,9 +8,11 @@ , objgraph , path , portend +, pyopenssl , pytest-forked , pytest-services , pytestCheckHook +, python-memcached , pythonAtLeast , pythonOlder , requests-toolbelt @@ -38,15 +40,11 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - # required cheroot portend more-itertools zc_lockfile jaraco_collections - # optional - routes - simplejson ]; checkInputs = [ @@ -90,6 +88,15 @@ buildPythonPackage rec { "cherrypy" ]; + passthru.optional-dependencies = { + json = [ simplejson ]; + memcached_session = [ python-memcached ]; + routes_dispatcher = [ routes ]; + ssl = [ pyopenssl ]; + # not packaged yet + xcgi = [ /* flup */ ]; + }; + meta = with lib; { description = "Object-oriented HTTP framework"; homepage = "https://www.cherrypy.org";