1
0

snapcraft.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. - autoconf
  29. - libudev-dev
  30. - libffi-dev
  31. - libssl-dev
  32. - libjpeg-dev
  33. - zlib1g-dev
  34. stage-packages:
  35. - libavformat-dev
  36. - libavcodec-dev
  37. - libavdevice-dev
  38. - libavutil-dev
  39. - libswscale-dev
  40. - libswresample-dev
  41. - libavfilter-dev
  42. - libslang2-dev
  43. - libglu1-mesa-dev
  44. - freeglut3-dev
  45. - cython3
  46. override-build: |
  47. # Remove LICENCE-part of insteonplm, which causes pip to fail
  48. echo "Fixing broken insteonplm install"
  49. PPACKAGES="$(pwd)/../python-packages/"
  50. INSTEONPLM=$(basename "$(ls ${PPACKAGES} | grep insteonplm --max-count=1)")
  51. echo "* Extracting ${INSTEONPLM}"
  52. SCFG=$(tar -xvzf "${PPACKAGES}/${INSTEONPLM}" | grep setup.cfg --max-count=1)
  53. sed '/^license_file/d' "${SCFG}" > ${SCFG}
  54. echo "* Compressing ${INSTEONPLM}"
  55. tar -zcf "${PPACKAGES}/${INSTEONPLM}" $(dirname "${SCFG}")
  56. echo "* Updated ${INSTEONPLM}"
  57. rm -rf $(dirname "${SCFG}")
  58. snapcraftctl build
  59. requirements:
  60. - requirements_all.txt