Unverified Commit 4ebefdeb authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.slack-sdk: fix test and clean up dependencies (#418578)

parents 997f9a74 7faa5c3b
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -6,9 +6,8 @@
  boto3,
  buildPythonPackage,
  fetchFromGitHub,
  flake8,
  fetchpatch,
  moto,
  psutil,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
@@ -30,12 +29,19 @@ buildPythonPackage rec {
    hash = "sha256-yjYpALyHSTLQSuwd6xth7nqfi3m1C9tqnWrrVRmI220=";
  };

  patches = [
    (fetchpatch {
      name = "fix-aiohttp-test_init_with_loop.patch";
      url = "https://github.com/slackapi/python-slack-sdk/pull/1697.patch";
      hash = "sha256-rHaJBH/Yxm3Sz/jmzc4G1pVJJXz0PL2880bz5n7w3ck=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
  optional-dependencies.optional = [
    aiodns
    aiohttp
    aiosqlite
    boto3
    sqlalchemy
    websocket-client
@@ -45,12 +51,11 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "slack_sdk" ];

  nativeCheckInputs = [
    flake8
    aiosqlite
    moto
    psutil
    pytest-asyncio
    pytestCheckHook
  ];
  ] ++ optional-dependencies.optional;

  disabledTests = [
    # Requires internet access (to slack API)