Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 64 lines 1.2 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, codecov 5, fetchFromGitHub 6, flake8 7, isPy3k 8, mock 9, psutil 10, pytest-cov 11, pytest-mock 12, pytestCheckHook 13, pytestrunner 14, requests 15, responses 16, six 17, websocket_client 18}: 19 20buildPythonPackage rec { 21 pname = "slackclient"; 22 version = "2.9.3"; 23 24 disabled = !isPy3k; 25 26 src = fetchFromGitHub { 27 owner = "slackapi"; 28 repo = "python-slack-sdk"; 29 rev = "v${version}"; 30 sha256 = "1rfb7izgddv28ag37gdnv3sd8z2zysrxs7ad8x20x690zshpaq16"; 31 }; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 websocket_client 36 requests 37 six 38 ]; 39 40 checkInputs = [ 41 codecov 42 flake8 43 mock 44 psutil 45 pytest-cov 46 pytest-mock 47 pytestCheckHook 48 pytestrunner 49 responses 50 ]; 51 52 # Exclude tests that requires network features 53 pytestFlagsArray = [ "--ignore=integration_tests" ]; 54 disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ]; 55 56 pythonImportsCheck = [ "slack" ]; 57 58 meta = with lib; { 59 description = "A client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API"; 60 homepage = "https://github.com/slackapi/python-slackclient"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ flokli psyanticy ]; 63 }; 64}