snapcraft.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: home-assistant
  2. version: git
  3. summary: Open source home automation that puts local control and privacy first
  4. description:
  5. Home Assistant is a home automation platform running on Python 3.
  6. It is able to track and control all devices at home and offer a
  7. platform for automating control.
  8. grade: devel
  9. base: core18
  10. confinement: devmode
  11. apps:
  12. hass:
  13. command: hass --config $SNAP_DATA
  14. daemon: simple
  15. restart-condition: always
  16. plugs: [network, network-bind]
  17. parts:
  18. home-assistant:
  19. plugin: python
  20. source: https://github.com/home-assistant/home-assistant.git
  21. source-tag: "0.90.1"
  22. python-version: python3
  23. python-packages:
  24. - Cython
  25. build-packages:
  26. - python3-dev
  27. - pkg-config
  28. stage-packages:
  29. - libavformat-dev
  30. - libavcodec-dev
  31. - libavdevice-dev
  32. - libavutil-dev
  33. - libswscale-dev
  34. - libswresample-dev
  35. - libavfilter-dev
  36. - libslang2-dev
  37. - libglu1-mesa-dev
  38. - freeglut3-dev
  39. - cython3
  40. override-build: |
  41. # Remove LICENCE-part of insteonplm, which causes pip to fail
  42. echo "Fixing broken insteonplm install"
  43. PPACKAGES="$(pwd)/../python-packages/"
  44. INSTEONPLM=$(basename "$(ls ${PPACKAGES} | grep insteonplm --max-count=1)")
  45. echo "* Extracting ${INSTEONPLM}"
  46. SCFG=$(tar -xvzf "${PPACKAGES}/${INSTEONPLM}" | grep setup.cfg --max-count=1)
  47. sed '/^license_file/d' "${SCFG}" > ${SCFG}
  48. echo "* Compressing ${INSTEONPLM}"
  49. tar -zcvf "${PPACKAGES}/${INSTEONPLM}" $(dirname "${SCFG}")
  50. echo "* Updated ${INSTEONPLM}"
  51. rm -rf $(dirname "${SCFG}")
  52. snapcraftctl build
  53. requirements: requirements_all.txt