name: hangups
version: 0.4.2
summary: Third-party instant messaging client for Google Hangouts
description: |
  hangups is a third-party instant messaging client for Google Hangouts with a
  text-based user interface.
confinement: strict
grade: stable

apps:
  hangups:
    # the hangups executable created by setuptools doesn't work in snap, so run
    # hangups directly instead
    command: usr/bin/python3.5 -m hangups.ui
    # hangups is not a server, but the requests library seems to require the
    # bind syscall
    plugs:
        - network
        - network-bind

parts:
  hangups:
    plugin: python
    source: .
    # reduce the size of the snap package by only including the files needed to
    # run hangups
    snap:
       - usr/bin/python3.5 # python binary
       - usr/lib/python3.5 # standard library
       - lib/python3.5/site-packages # python packages

name: hangups
version: 0.4.2
summary: Third-party instant messaging client for Google Hangouts
description: |
  hangups is a third-party instant messaging client for Google Hangouts with a
  text-based user interface.
confinement: strict
grade: stable

apps:
  hangups:
    command: bin/hangups
    # hangups is not a server, but the requests library seems to require the
    # bind syscall
    plugs:
        - network
        - network-bind

parts:
  hangups:
    plugin: python
    source: .
    # reduce the size of the snap package by only including the files needed to
    # run hangups
    prime:
        - bin/hangups # hangups binary
        - usr/bin # python binaries
        - usr/lib/python3.5 # standard library
        - lib/python3.5/site-packages # python packages

Fix pkg_resources issue with snap package
Fix pkg_resources issue with snap package

Somehow this fixes pkg_resources trying to list files in the current
working directory (outside the snap confinement) and crashing.
