1
0

snapcraft.yaml 2.2 KB

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