Merge pull request #312397 from fabaff/slack-sdk-bump

python312Packages.slack-sdk: 3.27.1 -> 3.27.2
This commit is contained in:
Fabian Affolter
2024-05-17 17:55:49 +02:00
committed by GitHub
3 changed files with 100 additions and 84 deletions
@@ -1,36 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, boto3
, botocore
, buildPythonPackage
, dateparser
, fetchFromGitHub
, matplotlib
, numpy
, pandas
, poetry-core
, prometheus-api-client
, pydantic_1
, pydantic
, pythonRelaxDepsHook
, requests
}:
buildPythonPackage rec {
pname = "prometrix";
version = "unstable-2024-02-20";
format = "pyproject";
version = "0.1.18-unstable-2024-04-30";
pyproject = true;
src = fetchFromGitHub {
owner = "robusta-dev";
repo = "prometrix";
rev = "ab2dad2192ed3df91c1a25446a4f54b8f2f6742f";
hash = "sha256-/72Qkd2BojYgiQi5rq7dVsEje7M0aQQXhenvIM7lSy4=";
# https://github.com/robusta-dev/prometrix/issues/19
rev = "35128847d46016b88455e0a98f0eeec08d042107";
hash = "sha256-g8ZqgL9ETVwpKLMQS7s7A4GpSGfaFEDLOr8JBvFl2C4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'pydantic = "^1.8.1"' 'pydantic = "*"'
'';
pythonRelaxDeps = [
"pydantic"
"urllib3"
];
propagatedBuildInputs = [
build-system = [
poetry-core
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
dependencies = [
boto3
botocore
dateparser
@@ -38,13 +48,13 @@ buildPythonPackage rec {
numpy
pandas
prometheus-api-client
pydantic_1
pydantic
requests
];
nativeBuildInputs = [
poetry-core
];
# Fixture is missing
# https://github.com/robusta-dev/prometrix/issues/9
doCheck = false;
pythonImportsCheck = [
"prometrix"
@@ -56,7 +66,11 @@ buildPythonPackage rec {
This Python package provides a unified Prometheus client that can be used
to connect to and query various types of Prometheus instances.
'';
homepage = "https://github.com/robusta-dev/prometrix";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
# prometheus-api-client 0.5.5 is not working
# https://github.com/robusta-dev/prometrix/issues/14
broken = versionAtLeast prometheus-api-client.version "0.5.3";
};
}
@@ -1,33 +1,35 @@
{ aiohttp
, bottle
, buildPythonPackage
, chalice
, cherrypy
, django
, docker
, falcon
, fastapi
, fetchFromGitHub
, flask
, flask-sockets
, gunicorn
, lib
, moto
, numpy
, pyramid
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, sanic
, setuptools
, sanic-testing
, slack-sdk
, starlette
, tornado
, uvicorn
, websocket-client
, websockets
, werkzeug
{
lib,
aiohttp,
bottle,
buildPythonPackage,
chalice,
cherrypy,
django,
docker,
falcon,
fastapi,
fetchFromGitHub,
fetchpatch,
flask,
flask-sockets,
gunicorn,
moto,
numpy,
pyramid,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
sanic,
setuptools,
sanic-testing,
slack-sdk,
starlette,
tornado,
uvicorn,
websocket-client,
websockets,
werkzeug,
}:
buildPythonPackage rec {
@@ -44,19 +46,23 @@ buildPythonPackage rec {
hash = "sha256-UwVStemFVA4hgqnSpCKpQGwLYG+p5z7MwFXXnIhrvNk=";
};
# The packaged pytest-runner version is too new as of 2023-07-27. It's not really needed anyway. Unfortunately,
# pythonRelaxDepsHook doesn't work on setup_requires packages.
postPatch = ''
substituteInPlace setup.py --replace "pytest-runner==5.2" ""
substituteInPlace setup.py \
--replace-fail "pytest-runner==5.2" ""
'';
nativeBuildInputs = [
setuptools
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=";
})
];
propagatedBuildInputs = [
slack-sdk
];
build-system = [ setuptools ];
dependencies = [ slack-sdk ];
passthru.optional-dependencies = {
async = [
@@ -91,7 +97,6 @@ buildPythonPackage rec {
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
# Work around "Read-only file system: '/homeless-shelter'" errors
preCheck = ''
export HOME="$(mktemp -d)"
'';
@@ -1,27 +1,28 @@
{ stdenv
, lib
, aiodns
, aiohttp
, boto3
, buildPythonPackage
, codecov
, fetchFromGitHub
, flake8
, flask-sockets
, moto
, pythonOlder
, psutil
, pytest-asyncio
, pytestCheckHook
, setuptools
, sqlalchemy
, websocket-client
, websockets
{
lib,
stdenv,
aiodns,
aiohttp,
boto3,
buildPythonPackage,
codecov,
fetchFromGitHub,
flake8,
flask-sockets,
moto,
pythonOlder,
psutil,
pytest-asyncio,
pytestCheckHook,
setuptools,
sqlalchemy,
websocket-client,
websockets,
}:
buildPythonPackage rec {
pname = "slack-sdk";
version = "3.27.1";
version = "3.27.2";
pyproject = true;
disabled = pythonOlder "3.6";
@@ -30,7 +31,7 @@ buildPythonPackage rec {
owner = "slackapi";
repo = "python-slack-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-fBHu4e6pSt8yzXbLWr5cwjRFDfvdH2jzpSNzdMBg4N0=";
hash = "sha256-1I08OUseiwCN9vUd56f9IFzCSB9kGjTLojyWm2dIimE=";
};
postPatch = ''
@@ -38,11 +39,9 @@ buildPythonPackage rec {
--replace-fail ', "pytest-runner"' ""
'';
nativeBuildInputs = [
setuptools
];
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
aiodns
aiohttp
boto3
@@ -78,15 +77,13 @@ buildPythonPackage rec {
"test_issue_690_oauth_access"
];
pythonImportsCheck = [
"slack_sdk"
];
pythonImportsCheck = [ "slack_sdk" ];
meta = with lib; {
description = "Slack Developer Kit for Python";
homepage = "https://slack.dev/python-slack-sdk/";
changelog = "https://github.com/slackapi/python-slack-sdk/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}