1
0

snapcraft.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. hooks:
  60. prepare-slot-certs:
  61. plugs:
  62. - network
  63. - network-bind
  64. parts:
  65. homeassistant:
  66. plugin: python-wot-plugin
  67. source: https://github.com/home-assistant/core.git
  68. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  69. python-packages:
  70. - setuptools
  71. - wheel
  72. - Cython
  73. - pip
  74. build-packages:
  75. - python3
  76. - python3-dev
  77. - python3-setuptools
  78. - python3-wheel
  79. - pkg-config
  80. - autoconf
  81. - build-essential
  82. - cmake
  83. - cython3
  84. - ffmpeg
  85. - libavcodec-dev
  86. - libavdevice-dev
  87. - libavfilter-dev
  88. - libavformat-dev
  89. - libavresample-dev
  90. - libavutil-dev
  91. - libffi-dev
  92. - libglib2.0-dev
  93. - libglu1-mesa-dev
  94. - libgpiod-dev
  95. - libjpeg-dev
  96. - libopenzwave1.5-dev
  97. - libssl-dev
  98. - libswscale-dev
  99. - libudev-dev
  100. - libxml2-dev
  101. - libxslt1-dev
  102. - zlib1g-dev
  103. stage-packages:
  104. - freeglut3
  105. - ffmpeg
  106. - libglu1-mesa
  107. - zlib1g
  108. requirements:
  109. - requirements_all.txt
  110. constraints:
  111. - homeassistant/package_constraints.txt
  112. override-build: |
  113. snapcraftctl build
  114. sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg
  115. hooks:
  116. plugin: dump
  117. source: ./scripts/hooks
  118. source-type: local
  119. stage-packages:
  120. - uuid
  121. - libossp-uuid16
  122. - libassuan0
  123. - gpg
  124. - gpg-agent
  125. organize:
  126. configure: snap/hooks/configure
  127. post-refresh: snap/hooks/post-refresh
  128. prepare-slot-certs: snap/hooks/prepare-slot-certs
  129. bins:
  130. plugin: dump
  131. source: ./scripts/bin
  132. source-type: local
  133. organize:
  134. slot-certs: bin/slot-certs
  135. certs-daemon: bin/certs-daemon
  136. config:
  137. plugin: dump
  138. source: ./scripts/config
  139. source-type: local