home-assistant-cli: 0.6.0 -> 0.7.0
https://github.com/home-assistant/home-assistant-cli/releases/tag/0.7.0
This commit is contained in:
parent
130e8f9d0d
commit
c20b21df47
@ -1,12 +1,12 @@
|
|||||||
{ lib, python3, glibcLocales }:
|
{ lib, python3 }:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "homeassistant-cli";
|
pname = "homeassistant-cli";
|
||||||
version = "0.6.0";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = python3.pkgs.fetchPypi {
|
src = python3.pkgs.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0yjqjfqr1gc4c9k5z5i7ngcpcwmyp3lzs4xv7allgqvglmw26ji4";
|
sha256 = "a38d4669201ac2afa71b6578a220bf4d6d59131263b278d51ebd1479677f6baf";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -14,16 +14,10 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
|
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
glibcLocales
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
requests netdisco click click-log tabulate jsonpath_rw jinja2 dateparser regex ruamel_yaml aiohttp
|
requests netdisco click click-log tabulate jsonpath_rw jinja2 dateparser regex ruamel_yaml aiohttp
|
||||||
];
|
];
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p "$out/share/bash-completion/completions" "$out/share/zsh/site-functions"
|
mkdir -p "$out/share/bash-completion/completions" "$out/share/zsh/site-functions"
|
||||||
$out/bin/hass-cli completion bash > "$out/share/bash-completion/completions/hass-cli"
|
$out/bin/hass-cli completion bash > "$out/share/bash-completion/completions/hass-cli"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user