python310Packages.cherrypy: properly declare optional dependencies

main
Sandro Jäckel 2 years ago committed by Jonathan Ringer
parent 6944e6c445
commit 55531cfbfb
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 15
      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";

Loading…
Cancel
Save