|
@@ -13,17 +13,22 @@ architectures:
|
|
layout:
|
|
layout:
|
|
/etc/pip.conf:
|
|
/etc/pip.conf:
|
|
bind-file: $SNAP_DATA/pip.conf
|
|
bind-file: $SNAP_DATA/pip.conf
|
|
|
|
+ /etc/openzwave: _
|
|
|
|
+ bind: $SNAP_DATA/openzwave
|
|
apps:
|
|
apps:
|
|
hass:
|
|
hass:
|
|
command: bin/hass --config $SNAP_USER_DATA
|
|
command: bin/hass --config $SNAP_USER_DATA
|
|
daemon: simple
|
|
daemon: simple
|
|
|
|
+ environment:
|
|
|
|
+ PIP_USER: 1
|
|
restart-condition: always
|
|
restart-condition: always
|
|
plugs:
|
|
plugs:
|
|
- bluez
|
|
- bluez
|
|
- network
|
|
- network
|
|
- network-bind
|
|
- network-bind
|
|
|
|
+ - raw-usb
|
|
|
|
|
|
- # GPIO devices etc..
|
|
|
|
|
|
+ # GPIO devices etc.. (e.g RaZberry GPIO hat)
|
|
- physical-memory-control
|
|
- physical-memory-control
|
|
parts:
|
|
parts:
|
|
homeassistant:
|
|
homeassistant:
|
|
@@ -34,6 +39,8 @@ parts:
|
|
- setuptools
|
|
- setuptools
|
|
- wheel
|
|
- wheel
|
|
- Cython
|
|
- Cython
|
|
|
|
+ - pip
|
|
|
|
+ - bcrypt
|
|
build-packages:
|
|
build-packages:
|
|
- python3
|
|
- python3
|
|
- python3-dev
|
|
- python3-dev
|
|
@@ -82,9 +89,10 @@ parts:
|
|
# - libxml2
|
|
# - libxml2
|
|
# - libxslt1.1
|
|
# - libxslt1.1
|
|
- zlib1g
|
|
- zlib1g
|
|
- stage-snap:
|
|
|
|
- - python38
|
|
|
|
requirements:
|
|
requirements:
|
|
- requirements_all.txt
|
|
- requirements_all.txt
|
|
constraints:
|
|
constraints:
|
|
- homeassistant/package_constraints.txt
|
|
- homeassistant/package_constraints.txt
|
|
|
|
+ override-build: |
|
|
|
|
+ snapcraftctl build
|
|
|
|
+ sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' $SNAPCRAFT_PART_INSTALL/pyvenv.cfg
|