snapcraft.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. stage-packages:
  29. - libavformat-dev
  30. - libavcodec-dev
  31. - libavdevice-dev
  32. - libavutil-dev
  33. - libswscale-dev
  34. - libswresample-dev
  35. - libavfilter-dev
  36. - libslang2-dev
  37. - libglu1-mesa-dev
  38. - freeglut3-dev
  39. - libudev-dev
  40. - cython3
  41. override-build: |
  42. # Remove LICENCE-part of insteonplm, which causes pip to fail
  43. echo "Fixing broken insteonplm install"
  44. PPACKAGES="$(pwd)/../python-packages/"
  45. INSTEONPLM=$(basename "$(ls ${PPACKAGES} | grep insteonplm --max-count=1)")
  46. echo "* Extracting ${INSTEONPLM}"
  47. SCFG=$(tar -xvzf "${PPACKAGES}/${INSTEONPLM}" | grep setup.cfg --max-count=1)
  48. sed '/^license_file/d' "${SCFG}" > ${SCFG}
  49. echo "* Compressing ${INSTEONPLM}"
  50. tar -zcvf "${PPACKAGES}/${INSTEONPLM}" $(dirname "${SCFG}")
  51. echo "* Updated ${INSTEONPLM}"
  52. rm -rf $(dirname "${SCFG}")
  53. snapcraftctl build
  54. requirements:
  55. - requirements_all.txt