diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2018-12-20 02:31:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 02:31:09 +0000 |
commit | 25eb8419d9d36dcb53f8ff1f3199bd35289ad482 (patch) | |
tree | a9c9316434c559e28efdb1971313b38203c3c4d0 /pkgs/servers | |
parent | ee929c7299ee67eadfdda88d81d13e2a602dcdd9 (diff) | |
parent | 52b1973283aca1c36852e25da97a8e8f06e6d642 (diff) | |
download | nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar.gz nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar.bz2 nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar.lz nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar.xz nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.tar.zst nixlib-25eb8419d9d36dcb53f8ff1f3199bd35289ad482.zip |
Merge pull request #52527 from dotlambda/home-assistant-cli-0.3.0
home-assistant-cli: init at 0.3.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/home-assistant/cli.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix new file mode 100644 index 000000000000..c889610963d6 --- /dev/null +++ b/pkgs/servers/home-assistant/cli.nix @@ -0,0 +1,35 @@ +{ lib, python3 }: + +python3.pkgs.buildPythonApplication rec { + pname = "homeassistant-cli"; + version = "0.3.0"; + + src = python3.pkgs.fetchPypi { + inherit pname version; + sha256 = "42d7cb008801d7a448b62aed1fc46dd450ee67397bf16faabb02f691417db4b2"; + }; + + postPatch = '' + # Ignore pinned versions + sed -i "s/'\(.*\)==.*'/'\1'/g" setup.py + ''; + + propagatedBuildInputs = with python3.pkgs; [ + requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 + ]; + + checkInputs = with python3.pkgs; [ + pytest requests-mock + ]; + + checkPhase = '' + pytest + ''; + + meta = with lib; { + description = "Command-line tool for Home Asssistant"; + homepage = https://github.com/home-assistant/home-assistant-cli; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} |