python311Packages.slack-bolt: add optional-dependencies

This commit is contained in:
Fabian Affolter 2023-09-01 15:57:38 +02:00
parent 5fd650cb09
commit 133fa25ecc

View file

@ -1,4 +1,6 @@
{ buildPythonPackage { aiohttp
, bottle
, buildPythonPackage
, chalice , chalice
, cherrypy , cherrypy
, django , django
@ -7,17 +9,23 @@
, fetchFromGitHub , fetchFromGitHub
, flask , flask
, flask-sockets , flask-sockets
, gunicorn
, lib , lib
, moto , moto
, numpy , numpy
, pyramid , pyramid
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder
, sanic , sanic
, sanic-testing , sanic-testing
, slack-sdk , slack-sdk
, starlette , starlette
, tornado , tornado
, uvicorn
, websocket-client
, websockets
, werkzeug
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -25,6 +33,8 @@ buildPythonPackage rec {
version = "1.18.0"; version = "1.18.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "slackapi"; owner = "slackapi";
repo = "bolt-python"; repo = "bolt-python";
@ -40,23 +50,37 @@ buildPythonPackage rec {
propagatedBuildInputs = [ slack-sdk ]; propagatedBuildInputs = [ slack-sdk ];
passthru.optional-dependencies = {
async = [
aiohttp
websockets
];
adapter = [
bottle
chalice
cherrypy
django
falcon
fastapi
flask
flask-sockets
gunicorn
moto
pyramid
sanic
sanic-testing
starlette
tornado
uvicorn
websocket-client
werkzeug
];
};
nativeCheckInputs = [ nativeCheckInputs = [
chalice
cherrypy
django
falcon
fastapi
flask
flask-sockets
moto
pyramid
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
sanic ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
sanic-testing
starlette
tornado
];
# Work around "Read-only file system: '/homeless-shelter'" errors # Work around "Read-only file system: '/homeless-shelter'" errors
preCheck = '' preCheck = ''