snapcraft.yaml 2.1 KB

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