snapcraft.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: home-assistant
  2. version: git
  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. grade: devel
  9. base: core18
  10. confinement: devmode
  11. apps:
  12. hass:
  13. command: hass --config $SNAP_DATA
  14. daemon: simple
  15. restart-condition: always
  16. plugs: [network, network-bind]
  17. parts:
  18. home-assistant:
  19. plugin: python
  20. source: https://github.com/home-assistant/home-assistant.git
  21. source-tag: "0.90.1"
  22. python-version: python3
  23. python-packages:
  24. - Cython
  25. build-packages:
  26. - python3-dev
  27. - pkg-config
  28. - autoconf
  29. - libudev-dev
  30. stage-packages:
  31. - libavformat-dev
  32. - libavcodec-dev
  33. - libavdevice-dev
  34. - libavutil-dev
  35. - libswscale-dev
  36. - libswresample-dev
  37. - libavfilter-dev
  38. - libslang2-dev
  39. - libglu1-mesa-dev
  40. - freeglut3-dev
  41. - cython3
  42. override-build: |
  43. # Remove LICENCE-part of insteonplm, which causes pip to fail
  44. echo "Fixing broken insteonplm install"
  45. PPACKAGES="$(pwd)/../python-packages/"
  46. INSTEONPLM=$(basename "$(ls ${PPACKAGES} | grep insteonplm --max-count=1)")
  47. echo "* Extracting ${INSTEONPLM}"
  48. SCFG=$(tar -xvzf "${PPACKAGES}/${INSTEONPLM}" | grep setup.cfg --max-count=1)
  49. sed '/^license_file/d' "${SCFG}" > ${SCFG}
  50. echo "* Compressing ${INSTEONPLM}"
  51. tar -zcvf "${PPACKAGES}/${INSTEONPLM}" $(dirname "${SCFG}")
  52. echo "* Updated ${INSTEONPLM}"
  53. rm -rf $(dirname "${SCFG}")
  54. snapcraftctl build
  55. requirements:
  56. - requirements_all.txt