snapcraft.yaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: home-assistant-snap
  2. version: '0.113.3'
  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. base: core20
  9. grade: stable
  10. confinement: strict
  11. architectures:
  12. - build-on: [arm64, amd64, ppc64el]
  13. layout:
  14. /etc/pip.conf:
  15. bind-file: $SNAP_DATA/pip.conf
  16. /etc/openzwave:
  17. bind: $SNAP/openzwave
  18. apps:
  19. hass:
  20. command: bin/hass --config $SNAP_DATA
  21. daemon: simple
  22. environment:
  23. PIP_USER: 1
  24. restart-condition: always
  25. plugs:
  26. - bluez
  27. - network
  28. - network-bind
  29. - raw-usb
  30. # GPIO devices etc.. (e.g RaZberry GPIO hat)
  31. - physical-memory-control
  32. parts:
  33. homeassistant:
  34. plugin: python-wot-plugin
  35. source: https://github.com/home-assistant/core.git
  36. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  37. python-packages:
  38. - setuptools
  39. - wheel
  40. - Cython
  41. - pip
  42. #- bcrypt
  43. build-packages:
  44. - python3
  45. - python3-dev
  46. - python3-setuptools
  47. - python3-wheel
  48. - pkg-config
  49. - autoconf
  50. - build-essential
  51. - cmake
  52. - cython3
  53. - ffmpeg
  54. - libavcodec-dev
  55. - libavdevice-dev
  56. - libavfilter-dev
  57. - libavformat-dev
  58. - libavresample-dev
  59. - libavutil-dev
  60. - libffi-dev
  61. - libglib2.0-dev
  62. - libglu1-mesa-dev
  63. - libjpeg-dev
  64. - libopenzwave1.5-dev
  65. - libssl-dev
  66. - libswscale-dev
  67. - libudev-dev
  68. - libxml2-dev
  69. - libxslt1-dev
  70. - zlib1g-dev
  71. stage-packages:
  72. - freeglut3
  73. - ffmpeg
  74. # - libavcodec58
  75. # - libavdevice58
  76. # - libavfilter7
  77. # - libavformat58
  78. # - libavutil56
  79. # - libffi7
  80. # - libglib2.0-0
  81. # - libglu1-mesa
  82. # - libjpeg8
  83. # - libopenzwave1.5
  84. # - libssl1.1
  85. # - libswscale5
  86. # - libudev1
  87. # - libswresample3
  88. # - libxml2
  89. # - libxslt1.1
  90. - zlib1g
  91. requirements:
  92. - requirements_all.txt
  93. constraints:
  94. - homeassistant/package_constraints.txt
  95. override-build: |
  96. snapcraftctl build
  97. sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg