snapcraft.yaml 2.2 KB

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