snapcraft.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. name: home-assistant-snap
  2. version: '0.114.2'
  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. certs:
  23. interface: content
  24. content: certs
  25. write:
  26. - $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. slots:
  42. - components
  43. parts:
  44. homeassistant:
  45. plugin: python-wot-plugin
  46. source: https://github.com/home-assistant/core.git
  47. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  48. python-packages:
  49. - setuptools
  50. - wheel
  51. - Cython
  52. - pip
  53. build-packages:
  54. - python3
  55. - python3-dev
  56. - python3-setuptools
  57. - python3-wheel
  58. - pkg-config
  59. - autoconf
  60. - build-essential
  61. - cmake
  62. - cython3
  63. - ffmpeg
  64. - libavcodec-dev
  65. - libavdevice-dev
  66. - libavfilter-dev
  67. - libavformat-dev
  68. - libavresample-dev
  69. - libavutil-dev
  70. - libffi-dev
  71. - libglib2.0-dev
  72. - libglu1-mesa-dev
  73. - libgpiod-dev
  74. - libjpeg-dev
  75. - libopenzwave1.5-dev
  76. - libssl-dev
  77. - libswscale-dev
  78. - libudev-dev
  79. - libxml2-dev
  80. - libxslt1-dev
  81. - zlib1g-dev
  82. stage-packages:
  83. - freeglut3
  84. - ffmpeg
  85. - libglu1-mesa
  86. - zlib1g
  87. requirements:
  88. - requirements_all.txt
  89. constraints:
  90. - homeassistant/package_constraints.txt
  91. override-build: |
  92. snapcraftctl build
  93. sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg
  94. internal:
  95. plugin: nil
  96. stage-packages:
  97. - uuid
  98. - gpg