snapcraft.yaml 2.3 KB

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