python310Packages.cherrypy: properly declare optional dependencies
This commit is contained in:
parent
6944e6c445
commit
55531cfbfb
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue