Last active
August 3, 2020 15:22
-
-
Save evanjs/a88814e596fb83d4ca70ef2785ca2843 to your computer and use it in GitHub Desktop.
[WIP] sclack expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) | |
Sourcing python-recompile-bytecode-hook.sh | |
Sourcing python-remove-tests-dir-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing python-remove-bin-bytecode-hook.sh | |
Sourcing setuptools-build-hook | |
Using setuptoolsBuildPhase | |
Using setuptoolsShellHook | |
Sourcing pip-install-hook | |
Using pipInstallPhase | |
Sourcing python-imports-check-hook.sh | |
Using pythonImportsCheckPhase | |
Sourcing python-namespaces-hook | |
Sourcing setuptools-check-hook | |
Using setuptoolsCheckPhase | |
Sourcing pytest-check-hook | |
Using pytestCheckPhase | |
Removing setuptoolsCheckPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/zlkx4vc1k0m0bv2nlzi3wdz14l2isq8d-source | |
source root is source | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/.travis.yml | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
configuring | |
no configure script, doing nothing | |
@nix { "action": "setPhase", "phase": "buildPhase" } | |
building | |
Executing setuptoolsBuildPhase | |
running bdist_wheel | |
running build | |
running build_py | |
creating build | |
creating build/lib | |
creating build/lib/sclack | |
copying sclack/components.py -> build/lib/sclack | |
copying sclack/quick_switcher.py -> build/lib/sclack | |
copying sclack/loading.py -> build/lib/sclack | |
copying sclack/store.py -> build/lib/sclack | |
copying sclack/emoji.py -> build/lib/sclack | |
copying sclack/themes.py -> build/lib/sclack | |
copying sclack/image.py -> build/lib/sclack | |
copying sclack/markdown.py -> build/lib/sclack | |
copying sclack/__init__.py -> build/lib/sclack | |
creating build/lib/tests | |
copying tests/test_quick_switcher.py -> build/lib/tests | |
copying tests/test_api.py -> build/lib/tests | |
copying tests/test_markdown.py -> build/lib/tests | |
copying tests/__init__.py -> build/lib/tests | |
creating build/lib/sclack/widgets | |
copying sclack/widgets/set_snooze.py -> build/lib/sclack/widgets | |
copying sclack/widgets/__init__.py -> build/lib/sclack/widgets | |
creating build/lib/sclack/component | |
copying sclack/component/message.py -> build/lib/sclack/component | |
copying sclack/component/time.py -> build/lib/sclack/component | |
copying sclack/component/__init__.py -> build/lib/sclack/component | |
creating build/lib/sclack/utils | |
copying sclack/utils/channel.py -> build/lib/sclack/utils | |
copying sclack/utils/message.py -> build/lib/sclack/utils | |
copying sclack/utils/__init__.py -> build/lib/sclack/utils | |
running build_scripts | |
creating build/scripts-3.8 | |
copying and adjusting app.py -> build/scripts-3.8 | |
changing mode of build/scripts-3.8/app.py from 644 to 755 | |
installing to build/bdist.linux-x86_64/wheel | |
running install | |
running install_lib | |
creating build/bdist.linux-x86_64 | |
creating build/bdist.linux-x86_64/wheel | |
creating build/bdist.linux-x86_64/wheel/tests | |
copying build/lib/tests/__init__.py -> build/bdist.linux-x86_64/wheel/tests | |
copying build/lib/tests/test_markdown.py -> build/bdist.linux-x86_64/wheel/tests | |
copying build/lib/tests/test_api.py -> build/bdist.linux-x86_64/wheel/tests | |
copying build/lib/tests/test_quick_switcher.py -> build/bdist.linux-x86_64/wheel/tests | |
creating build/bdist.linux-x86_64/wheel/sclack | |
creating build/bdist.linux-x86_64/wheel/sclack/utils | |
copying build/lib/sclack/utils/__init__.py -> build/bdist.linux-x86_64/wheel/sclack/utils | |
copying build/lib/sclack/utils/message.py -> build/bdist.linux-x86_64/wheel/sclack/utils | |
copying build/lib/sclack/utils/channel.py -> build/bdist.linux-x86_64/wheel/sclack/utils | |
creating build/bdist.linux-x86_64/wheel/sclack/component | |
copying build/lib/sclack/component/__init__.py -> build/bdist.linux-x86_64/wheel/sclack/component | |
copying build/lib/sclack/component/time.py -> build/bdist.linux-x86_64/wheel/sclack/component | |
copying build/lib/sclack/component/message.py -> build/bdist.linux-x86_64/wheel/sclack/component | |
creating build/bdist.linux-x86_64/wheel/sclack/widgets | |
copying build/lib/sclack/widgets/__init__.py -> build/bdist.linux-x86_64/wheel/sclack/widgets | |
copying build/lib/sclack/widgets/set_snooze.py -> build/bdist.linux-x86_64/wheel/sclack/widgets | |
copying build/lib/sclack/__init__.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/markdown.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/image.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/themes.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/emoji.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/store.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/loading.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/quick_switcher.py -> build/bdist.linux-x86_64/wheel/sclack | |
copying build/lib/sclack/components.py -> build/bdist.linux-x86_64/wheel/sclack | |
running install_egg_info | |
running egg_info | |
creating sclack.egg-info | |
writing sclack.egg-info/PKG-INFO | |
writing dependency_links to sclack.egg-info/dependency_links.txt | |
writing requirements to sclack.egg-info/requires.txt | |
writing top-level names to sclack.egg-info/top_level.txt | |
writing manifest file 'sclack.egg-info/SOURCES.txt' | |
reading manifest file 'sclack.egg-info/SOURCES.txt' | |
writing manifest file 'sclack.egg-info/SOURCES.txt' | |
Copying sclack.egg-info to build/bdist.linux-x86_64/wheel/sclack-1.0-py3.8.egg-info | |
running install_scripts | |
creating build/bdist.linux-x86_64/wheel/sclack-1.0.data | |
creating build/bdist.linux-x86_64/wheel/sclack-1.0.data/scripts | |
copying build/scripts-3.8/app.py -> build/bdist.linux-x86_64/wheel/sclack-1.0.data/scripts | |
changing mode of build/bdist.linux-x86_64/wheel/sclack-1.0.data/scripts/app.py to 755 | |
adding license file "LICENSE" (matched pattern "LICEN[CS]E*") | |
creating build/bdist.linux-x86_64/wheel/sclack-1.0.dist-info/WHEEL | |
creating 'dist/sclack-1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it | |
adding 'sclack/__init__.py' | |
adding 'sclack/components.py' | |
adding 'sclack/emoji.py' | |
adding 'sclack/image.py' | |
adding 'sclack/loading.py' | |
adding 'sclack/markdown.py' | |
adding 'sclack/quick_switcher.py' | |
adding 'sclack/store.py' | |
adding 'sclack/themes.py' | |
adding 'sclack/component/__init__.py' | |
adding 'sclack/component/message.py' | |
adding 'sclack/component/time.py' | |
adding 'sclack/utils/__init__.py' | |
adding 'sclack/utils/channel.py' | |
adding 'sclack/utils/message.py' | |
adding 'sclack/widgets/__init__.py' | |
adding 'sclack/widgets/set_snooze.py' | |
adding 'sclack-1.0.data/scripts/app.py' | |
adding 'tests/__init__.py' | |
adding 'tests/test_api.py' | |
adding 'tests/test_markdown.py' | |
adding 'tests/test_quick_switcher.py' | |
adding 'sclack-1.0.dist-info/LICENSE' | |
adding 'sclack-1.0.dist-info/METADATA' | |
adding 'sclack-1.0.dist-info/WHEEL' | |
adding 'sclack-1.0.dist-info/top_level.txt' | |
adding 'sclack-1.0.dist-info/RECORD' | |
removing build/bdist.linux-x86_64/wheel | |
Finished executing setuptoolsBuildPhase | |
@nix { "action": "setPhase", "phase": "installPhase" } | |
installing | |
Executing pipInstallPhase | |
/build/source/dist /build/source | |
Processing ./sclack-1.0-py3-none-any.whl | |
Requirement already satisfied: urwid-readline in /nix/store/vz0wl14p64mz5wp68260ia33mf2x2l6d-python3.8-urwid_readline-0.11/lib/python3.8/site-packages (from sclack==1.0) (0.11) | |
Requirement already satisfied: slackclient in /nix/store/m59zag3fkxhc2557fz5v01dikh9mk69y-python3.8-python-slackclient-2.5.0/lib/python3.8/site-packages (from sclack==1.0) (2.5.0) | |
Requirement already satisfied: requests in /nix/store/i1251ijhdnr7gdbjzwh3f65590bs024n-python3.8-requests-2.23.0/lib/python3.8/site-packages (from sclack==1.0) (2.23.0) | |
Requirement already satisfied: pyperclip in /nix/store/0p9a4k5gj0n1f68lhhpxl0v48q3zg82s-python3.8-pyperclip-1.8.0/lib/python3.8/site-packages (from sclack==1.0) (1.8.0) | |
Requirement already satisfied: urwid>2 in /nix/store/3fgx8lbq06h0zxlw7kp5vxij7r1smwrs-python3.8-urwid-2.1.1/lib/python3.8/site-packages (from sclack==1.0) (2.1.1) | |
Requirement already satisfied: aiohttp>3.5.2 in /nix/store/4g34vq5xmv3iizffvprsr1985q1wwcb2-python3.8-aiohttp-3.6.2/lib/python3.8/site-packages (from slackclient->sclack==1.0) (3.6.2) | |
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /nix/store/c8pd2l4dlwgrklwzlc04jxfikvf0gyiy-python3.8-urllib3-1.25.9/lib/python3.8/site-packages (from requests->sclack==1.0) (1.25.9) | |
Requirement already satisfied: certifi>=2017.4.17 in /nix/store/9kqb4bza45x5rcby3cj7s6jhiz31yz48-python3.8-certifi-2020.4.5.1/lib/python3.8/site-packages (from requests->sclack==1.0) (2020.4.5.1) | |
Requirement already satisfied: idna<3,>=2.5 in /nix/store/ih3092qj2dfqip6ra45ywfvdas0j2ai6-python3.8-idna-2.9/lib/python3.8/site-packages (from requests->sclack==1.0) (2.9) | |
Requirement already satisfied: chardet<4,>=3.0.2 in /nix/store/7xvjvx2bi0c4lsbiar9gsb9ppg3gd838-python3.8-chardet-3.0.4/lib/python3.8/site-packages (from requests->sclack==1.0) (3.0.4) | |
Requirement already satisfied: multidict<5.0,>=4.5 in /nix/store/5ksiwmb747j69vl3l19jf1mqkhv5scqf-python3.8-multidict-4.7.6/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->sclack==1.0) (4.7.6) | |
Requirement already satisfied: yarl<2.0,>=1.0 in /nix/store/5rwzgqm3ncfy93ghn4fh06n0ydhy2df3-python3.8-yarl-1.4.2/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->sclack==1.0) (1.4.2) | |
Requirement already satisfied: attrs>=17.3.0 in /nix/store/zlmk119cdv68lvy6vpzvrq0zdcqrss9n-python3.8-attrs-19.3.0/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->sclack==1.0) (19.3.0) | |
Requirement already satisfied: async-timeout<4.0,>=3.0 in /nix/store/8ngq6z79kn05ws5z6rr8csapymjv3rlw-python3.8-async-timeout-3.0.1/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->sclack==1.0) (3.0.1) | |
Installing collected packages: sclack | |
Successfully installed sclack-1.0 | |
/build/source | |
Finished executing pipInstallPhase | |
@nix { "action": "setPhase", "phase": "fixupPhase" } | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15 | |
strip is /nix/store/k6rnzlmcvm37d0nw4fkz6ivmykmrdn39-binutils-2.31.1/bin/strip | |
stripping (with command strip and flags -S) in /nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15/lib /nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15/bin | |
patching script interpreter paths in /nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15 | |
checking for references to /build/ in /nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15... | |
Rewriting #!/nix/store/8hf2rpqx8fnx6a3jm9pvn0d40c065zxl-python3-3.8.3/bin/python3.8 to #!/nix/store/8hf2rpqx8fnx6a3jm9pvn0d40c065zxl-python3-3.8.3 | |
wrapping `/nix/store/z6p31ay3zwxc8swh0ja1mlgay5ab9w9g-python3.8-sclack-unstable-2019-07-15/bin/sclack'... | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
@nix { "action": "setPhase", "phase": "installCheckPhase" } | |
running install tests | |
no Makefile or custom buildPhase, doing nothing | |
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } | |
pythonCatchConflictsPhase | |
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } | |
pythonRemoveBinBytecodePhase | |
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } | |
pythonImportsCheckPhase | |
Executing pythonImportsCheckPhase | |
@nix { "action": "setPhase", "phase": "pytestCheckPhase" } | |
pytestCheckPhase | |
Executing pytestCheckPhase | |
============================= test session starts ============================== | |
platform linux -- Python 3.8.3, pytest-5.4.3, py-1.8.1, pluggy-0.13.1 | |
rootdir: /build/source | |
collected 10 items | |
tests/test_api.py There is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? FThere is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? FThere is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? FThere is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? FThere is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? FThere is no ~/.sclack file. Let's create one! | |
What is your Slack workspace token? F | |
tests/test_markdown.py ... | |
tests/test_quick_switcher.py . | |
=================================== FAILURES =================================== | |
_____________________________ test_workspace_token _____________________________ | |
def test_workspace_token(): | |
> json_config = get_config() | |
tests/test_api.py:19: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
__________________________________ test_auth ___________________________________ | |
def test_auth(): | |
> client = get_slack_client() | |
tests/test_api.py:23: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:16: in get_slack_client | |
return WebClient(get_token()) | |
tests/test_api.py:12: in get_token | |
json_config = get_config() | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
______________________________ test_get_channels _______________________________ | |
def test_get_channels(): | |
> client = get_slack_client() | |
tests/test_api.py:29: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:16: in get_slack_client | |
return WebClient(get_token()) | |
tests/test_api.py:12: in get_token | |
json_config = get_config() | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
_______________________________ test_get_members _______________________________ | |
def test_get_members(): | |
> client = get_slack_client() | |
tests/test_api.py:37: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:16: in get_slack_client | |
return WebClient(get_token()) | |
tests/test_api.py:12: in get_token | |
json_config = get_config() | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
_________________________ test_get_members_pagination1 _________________________ | |
def test_get_members_pagination1(): | |
> client = get_slack_client() | |
tests/test_api.py:46: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:16: in get_slack_client | |
return WebClient(get_token()) | |
tests/test_api.py:12: in get_token | |
json_config = get_config() | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
_________________________ test_get_members_pagination2 _________________________ | |
def test_get_members_pagination2(): | |
> client = get_slack_client() | |
tests/test_api.py:55: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_api.py:16: in get_slack_client | |
return WebClient(get_token()) | |
tests/test_api.py:12: in get_token | |
json_config = get_config() | |
tests/test_api.py:8: in get_config | |
ask_for_token(json_config) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
json_config = {} | |
def ask_for_token(json_config): | |
if os.path.isfile(os.path.expanduser('~/.sclack')): | |
with open(os.path.expanduser('~/.sclack'), 'r') as user_file: | |
# Compatible with legacy configuration file | |
new_config = json.load(user_file) | |
if not 'workspaces' in new_config: | |
new_config['workspaces'] = {'default': new_config['token']} | |
json_config.update(new_config) | |
else: | |
print('There is no ~/.sclack file. Let\'s create one!') | |
> token = input('What is your Slack workspace token? ') | |
E EOFError: EOF when reading a line | |
app.py:955: EOFError | |
=============================== warnings summary =============================== | |
/nix/store/4g34vq5xmv3iizffvprsr1985q1wwcb2-python3.8-aiohttp-3.6.2/lib/python3.8/site-packages/aiohttp/helpers.py:107 | |
/nix/store/4g34vq5xmv3iizffvprsr1985q1wwcb2-python3.8-aiohttp-3.6.2/lib/python3.8/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def noop(*args, **kwargs): # type: ignore | |
app.py:136 | |
/build/source/app.py:136: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def animate_loading(self): | |
app.py:144 | |
/build/source/app.py:144: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def component_did_mount(self): | |
app.py:150 | |
/build/source/app.py:150: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def mount_sidebar(self, executor): | |
app.py:226 | |
/build/source/app.py:226: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def get_presences(self, executor, dm_widgets): | |
app.py:247 | |
/build/source/app.py:247: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def get_dms_unread(self, executor, dm_widgets): | |
app.py:269 | |
/build/source/app.py:269: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def get_channels_info(self, executor, channels): | |
app.py:283 | |
/build/source/app.py:283: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def update_chat(self, event): | |
app.py:292 | |
/build/source/app.py:292: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def mount_chatbox(self, executor, channel): | |
app.py:606 | |
/build/source/app.py:606: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def mark_read_slack(self, index): | |
app.py:627 | |
/build/source/app.py:627: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def _go_to_channel(self, channel_id): | |
app.py:679 | |
/build/source/app.py:679: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def dispatch_snooze_time(self, snoozed_time): | |
app.py:683 | |
/build/source/app.py:683: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def load_picture_async(self, url, width, message_widget, auth=True): | |
app.py:704 | |
/build/source/app.py:704: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def load_profile_avatar(self, url, profile): | |
app.py:719 | |
/build/source/app.py:719: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead | |
def start_real_time(self): | |
-- Docs: https://docs.pytest.org/en/latest/warnings.html | |
=========================== short test summary info ============================ | |
FAILED tests/test_api.py::test_workspace_token - EOFError: EOF when reading a... | |
FAILED tests/test_api.py::test_auth - EOFError: EOF when reading a line | |
FAILED tests/test_api.py::test_get_channels - EOFError: EOF when reading a line | |
FAILED tests/test_api.py::test_get_members - EOFError: EOF when reading a line | |
FAILED tests/test_api.py::test_get_members_pagination1 - EOFError: EOF when r... | |
FAILED tests/test_api.py::test_get_members_pagination2 - EOFError: EOF when r... | |
=================== 6 failed, 4 passed, 15 warnings in 0.50s =================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, fetchFromGitHub | |
, pythonOlder | |
, pythonPackages | |
, buildPythonPackage | |
, writeTextFile | |
, libcaca | |
, glibcLocales | |
, pytestCheckHook | |
}: | |
buildPythonPackage rec { | |
pname = "sclack"; | |
version = "unstable-2019-07-15"; | |
disabled = pythonOlder "3.6"; | |
src = fetchFromGitHub { | |
owner = "haskellcamargo"; | |
repo = "sclack"; | |
rev = "4825249f9706ded585ac0d42ac7d86262fa14fd7"; | |
sha256 = "1dc3s3jn2ig55d8955fnjyppjkaw92mrzwpkv2hd0r8v1mffavi6"; | |
}; | |
propagatedBuildInputs = with pythonPackages; [ | |
libcaca | |
pyperclip | |
requests | |
urwid | |
urwid_readline | |
slackclient | |
]; | |
pytestFlagsArray = [ "-s" ]; | |
LC_ALL = "en_US.UTF-8"; | |
checkInputs = [ glibcLocales pytestCheckHook ]; | |
prePatch = '' | |
substituteInPlace app.py --replace "'./config.json'" "'$out/bin/config.json'" | |
substituteInPlace setup.py \ | |
--replace 'find_packages()' 'find_packages(exclude=[".*tests","build/lib/tests"])' \ | |
--replace "'asyncio'," ' ' | |
for file in {sclack/store,tests/test_api}.py; do | |
substituteInPlace $file \ | |
--replace 'slackclient' 'slack' \ | |
--replace 'SlackClient' 'WebClient' | |
done | |
''; | |
postInstall = '' | |
mv $out/bin/app.py $out/bin/sclack | |
cp config.json $out/bin/ | |
''; | |
meta = with stdenv.lib; { | |
description = "The best CLI client for Slack, because everything is terrible!"; | |
license = licenses.gpl3; | |
platforms = platforms.all; | |
homepage = https://github.com/haskellcamargo/sclack/; | |
maintainers = with maintainers; [ evanjs ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment