snapcraft.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. apps:
  32. hass:
  33. command: bin/hass --config $SNAP_DATA
  34. command-chain:
  35. - bin/slot-certs
  36. daemon: simple
  37. environment:
  38. PIP_USER: 1
  39. restart-condition: always
  40. plugs:
  41. - bluez
  42. - network
  43. - network-bind
  44. - raw-usb
  45. # GPIO devices etc.. (e.g RaZberry GPIO hat)
  46. - physical-memory-control
  47. slots:
  48. - components
  49. certs-daemon:
  50. command: bin/certs-daemon
  51. daemon: oneshot
  52. restart-condition: always
  53. timer: 00:00-24:00/287
  54. slots:
  55. - certs
  56. plugs:
  57. - network
  58. - network-bind
  59. refresh-certs:
  60. command: bin/certs-daemon
  61. slots:
  62. - certs
  63. plugs:
  64. - network
  65. - network-bind
  66. hooks:
  67. prepare-slot-certs:
  68. plugs:
  69. - network
  70. - network-bind
  71. parts:
  72. homeassistant:
  73. plugin: python-wot-plugin
  74. source: https://github.com/home-assistant/core.git
  75. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  76. python-packages:
  77. - setuptools
  78. - wheel
  79. - Cython
  80. - pip
  81. build-packages:
  82. - python3
  83. - python3-dev
  84. - python3-setuptools
  85. - python3-wheel
  86. - pkg-config
  87. - autoconf
  88. - build-essential
  89. - cmake
  90. - cython3
  91. - ffmpeg
  92. - libavcodec-dev
  93. - libavdevice-dev
  94. - libavfilter-dev
  95. - libavformat-dev
  96. - libavresample-dev
  97. - libavutil-dev
  98. - libffi-dev
  99. - libglib2.0-dev
  100. - libglu1-mesa-dev
  101. - libgpiod-dev
  102. - libjpeg-dev
  103. - libopenzwave1.5-dev
  104. - libssl-dev
  105. - libswscale-dev
  106. - libudev-dev
  107. - libxml2-dev
  108. - libxslt1-dev
  109. - zlib1g-dev
  110. stage-packages:
  111. - freeglut3
  112. - ffmpeg
  113. - libglu1-mesa
  114. - zlib1g
  115. requirements:
  116. - requirements_all.txt
  117. constraints:
  118. - homeassistant/package_constraints.txt
  119. override-build: |
  120. snapcraftctl build
  121. sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg
  122. hooks:
  123. plugin: dump
  124. source: ./scripts/hooks
  125. source-type: local
  126. stage-packages:
  127. - uuid
  128. - libossp-uuid16
  129. - libassuan0
  130. - gpg
  131. - gpg-agent
  132. organize:
  133. configure: snap/hooks/configure
  134. post-refresh: snap/hooks/post-refresh
  135. prepare-slot-certs: snap/hooks/prepare-slot-certs
  136. bins:
  137. plugin: dump
  138. source: ./scripts/bin
  139. source-type: local
  140. organize:
  141. slot-certs: bin/slot-certs
  142. certs-daemon: bin/certs-daemon
  143. config:
  144. plugin: dump
  145. source: ./scripts/config
  146. source-type: local