Fabian Affolter 2024-11-16 08:55:44 +01:00
parent 966b40728f
commit 98a9f147e1

View File

@ -10,7 +10,6 @@
falcon, falcon,
fastapi, fastapi,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
flask, flask,
flask-sockets, flask-sockets,
gunicorn, gunicorn,
@ -33,32 +32,23 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "slack-bolt"; pname = "slack-bolt";
version = "1.20.1"; version = "1.21.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "slackapi"; owner = "slackapi";
repo = "bolt-python"; repo = "bolt-python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-wDiRQ44ei59I8/2JXv2j9VQFthdyS7sSEZLS7trhdp0="; hash = "sha256-4zEg60f3wtLnzrZU4mZMJmF6hO0EiHDTx6iw4WDsx0U=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace pyproject.toml \
--replace-fail "pytest-runner==5.2" "" --replace-fail '"pytest-runner==5.2",' ""
''; '';
patches = [
# moto >=5 support, https://github.com/slackapi/bolt-python/pull/1046
(fetchpatch {
name = "moto-support.patch";
url = "https://github.com/slackapi/bolt-python/commit/69c2015ef49773de111f184dca9668aefac9e7c0.patch";
hash = "sha256-KW7KPeOqanV4n1UOv4DCadplJsqsPY+ju4ry0IvUqpA=";
})
];
build-system = [ setuptools ]; build-system = [ setuptools ];
dependencies = [ slack-sdk ]; dependencies = [ slack-sdk ];