python312Packages.slack-bolt: fix on darwin; clean

This commit is contained in:
Gaetan Lepage
2024-11-22 14:25:38 +01:00
parent c104826f0c
commit 12e66587fe
@@ -1,33 +1,42 @@
{
lib,
aiohttp,
bottle,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
slack-sdk,
# optional-dependencies
# - async
aiohttp,
websockets,
# - adapter
bottle,
chalice,
cherrypy,
django,
docker,
falcon,
fastapi,
fetchFromGitHub,
flask,
flask-sockets,
gunicorn,
moto,
pyramid,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
sanic,
setuptools,
sanic-testing,
slack-sdk,
starlette,
tornado,
uvicorn,
websocket-client,
websockets,
werkzeug,
# tests
docker,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
@@ -35,8 +44,6 @@ buildPythonPackage rec {
version = "1.21.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "slackapi";
repo = "bolt-python";
@@ -80,6 +87,8 @@ buildPythonPackage rec {
];
};
pythonImportsCheck = [ "slack_bolt" ];
nativeCheckInputs = [
docker
pytest-asyncio
@@ -90,30 +99,23 @@ buildPythonPackage rec {
export HOME="$(mktemp -d)"
'';
__darwinAllowLocalNetworking = true;
disabledTestPaths = [
# boddle is not packaged as of 2023-07-15
"tests/adapter_tests/bottle/"
# Tests are blocking at some point. Blocking could be performance-related.
"tests/scenario_tests_async/"
"tests/slack_bolt_async/"
];
disabledTests = [
# Require network access
"test_events"
"test_interactions"
"test_lazy_listener_calls"
"test_lazy_listeners"
"test_failure"
];
pythonImportsCheck = [ "slack_bolt" ];
meta = with lib; {
meta = {
description = "Framework to build Slack apps using Python";
homepage = "https://github.com/slackapi/bolt-python";
changelog = "https://github.com/slackapi/bolt-python/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ samuela ];
};
}