snapcraft.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. name: home-assistant-snap
  2. version: '0.114.4'
  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. This version supports integrations with
  9. - HACS: see 'home-assistant-hacs' (custom_components)
  10. - acme.sh: see 'acme-sh' (SSL-certificates)
  11. Also see 'ddclient-snap' to easily update your DNS.
  12. base: core20
  13. grade: stable
  14. confinement: strict
  15. layout:
  16. /etc/pip.conf:
  17. bind-file: $SNAP_DATA/pip.conf
  18. /etc/openzwave:
  19. bind: $SNAP/openzwave
  20. slots:
  21. components:
  22. interface: content
  23. content: components
  24. write:
  25. - $SNAP_DATA/custom_components
  26. certs:
  27. interface: content
  28. content: certs
  29. write:
  30. - $SNAP_DATA/certs
  31. configurations:
  32. interface: content
  33. write:
  34. - $SNAP_DATA
  35. apps:
  36. hass:
  37. command: bin/hass --config $SNAP_DATA
  38. command-chain:
  39. - bin/slot-certs
  40. daemon: simple
  41. environment:
  42. PIP_USER: 1
  43. restart-condition: always
  44. plugs:
  45. - bluez
  46. - network
  47. - network-bind
  48. - raw-usb
  49. # GPIO devices etc.. (e.g RaZberry GPIO hat)
  50. - physical-memory-control
  51. slots:
  52. - components
  53. certs-daemon:
  54. command: bin/certs-daemon
  55. daemon: oneshot
  56. restart-condition: always
  57. timer: 00:00-24:00/287
  58. slots:
  59. - certs
  60. plugs:
  61. - network
  62. - network-bind
  63. refresh-certs:
  64. command: bin/certs-daemon
  65. slots:
  66. - certs
  67. plugs:
  68. - network
  69. - network-bind
  70. hooks:
  71. prepare-slot-certs:
  72. plugs:
  73. - network
  74. - network-bind
  75. parts:
  76. homeassistant:
  77. plugin: python-wot-plugin
  78. source: https://github.com/home-assistant/core.git
  79. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  80. python-packages:
  81. - setuptools
  82. - wheel
  83. - Cython
  84. - pip
  85. build-packages:
  86. - python3
  87. - python3-dev
  88. - python3-setuptools
  89. - python3-wheel
  90. - pkg-config
  91. - autoconf
  92. - build-essential
  93. - cmake
  94. - cython3
  95. - ffmpeg
  96. - libavcodec-dev
  97. - libavdevice-dev
  98. - libavfilter-dev
  99. - libavformat-dev
  100. - libavresample-dev
  101. - libavutil-dev
  102. - libffi-dev
  103. - libglib2.0-dev
  104. - libglu1-mesa-dev
  105. - libgpiod-dev
  106. - libjpeg-dev
  107. - libopenzwave1.5-dev
  108. - libssl-dev
  109. - libswscale-dev
  110. - libudev-dev
  111. - libxml2-dev
  112. - libxslt1-dev
  113. - zlib1g-dev
  114. stage-packages:
  115. - freeglut3
  116. - ffmpeg
  117. - libglu1-mesa
  118. - zlib1g
  119. requirements:
  120. - requirements_all.txt
  121. constraints:
  122. - homeassistant/package_constraints.txt
  123. override-build: |
  124. snapcraftctl build
  125. sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg
  126. hooks:
  127. plugin: dump
  128. source: ./scripts/hooks
  129. source-type: local
  130. stage-packages:
  131. - uuid
  132. - libossp-uuid16
  133. - libassuan0
  134. - gpg
  135. - gpg-agent
  136. organize:
  137. configure: snap/hooks/configure
  138. post-refresh: snap/hooks/post-refresh
  139. prepare-slot-certs: snap/hooks/prepare-slot-certs
  140. bins:
  141. plugin: dump
  142. source: ./scripts/bin
  143. source-type: local
  144. organize:
  145. slot-certs: bin/slot-certs
  146. certs-daemon: bin/certs-daemon
  147. config:
  148. plugin: dump
  149. source: ./scripts/config
  150. source-type: local