snapcraft.yaml 3.2 KB

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