-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.slack-bolt: init at 1.18.0
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ buildPythonPackage | ||
, chalice | ||
, cherrypy | ||
, django | ||
, falcon | ||
, fastapi | ||
, fetchFromGitHub | ||
, flask | ||
, flask-sockets | ||
, lib | ||
, moto | ||
, numpy | ||
, pyramid | ||
, pytest-asyncio | ||
, pytestCheckHook | ||
, sanic | ||
, sanic-testing | ||
, slack-sdk | ||
, starlette | ||
, tornado | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "slack-bolt"; | ||
version = "1.18.0"; | ||
format = "setuptools"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "slackapi"; | ||
repo = "bolt-python"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-s9djd/MDNnyNkjkeApY6Fb1mhI6iop8RghaSJdi4eAs="; | ||
}; | ||
|
||
propagatedBuildInputs = [ slack-sdk ]; | ||
|
||
nativeCheckInputs = [ | ||
chalice | ||
cherrypy | ||
django | ||
falcon | ||
fastapi | ||
flask | ||
flask-sockets | ||
moto | ||
pyramid | ||
pytest-asyncio | ||
pytestCheckHook | ||
sanic | ||
sanic-testing | ||
starlette | ||
tornado | ||
]; | ||
|
||
# Work around "Read-only file system: '/homeless-shelter'" errors | ||
preCheck = '' | ||
export HOME="$(mktemp -d)" | ||
''; | ||
|
||
disabledTestPaths = [ | ||
# boddle is not packaged as of 2023-07-15 | ||
"tests/adapter_tests/bottle/" | ||
]; | ||
|
||
disabledTests = [ | ||
# Require network access | ||
"test_events" | ||
"test_interactions" | ||
"test_lazy_listener_calls" | ||
"test_lazy_listeners" | ||
]; | ||
|
||
pythonImportsCheck = [ "slack_bolt" ]; | ||
|
||
meta = with lib; { | ||
description = "A framework to build Slack apps using Python"; | ||
homepage = "https://github.com/slackapi/bolt-python"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ samuela ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters