1
0

snapcraft.yaml 2.1 KB

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