Skip to content

Commit

Permalink
Merge pull request #117069 from fabaff/simplisafe-python
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Mar 20, 2021
2 parents 19a73dc + 8ba0c68 commit 90d3914
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
61 changes: 61 additions & 0 deletions pkgs/development/python-modules/simplisafe-python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, python-engineio
, python-socketio
, pythonOlder
, pytz
, voluptuous
, websockets
}:

buildPythonPackage rec {
pname = "simplisafe-python";
version = "9.6.9";
format = "pyproject";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1q5w5pvrgj94bzd5wig79l4hipkfrcdah54rvwyi7b8q46gw77sg";
};

nativeBuildInputs = [ poetry-core ];

propagatedBuildInputs = [
aiohttp
python-engineio
python-socketio
pytz
voluptuous
websockets
];

checkInputs = [
aresponses
asynctest
pytest-asyncio
pytest-cov
pytestCheckHook
];

disabledTestPaths = [ "examples/" ];

pythonImportsCheck = [ "simplipy" ];

meta = with lib; {
description = "Python library the SimpliSafe API";
homepage = "https://simplisafe-python.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@
"sighthound" = ps: with ps; [ pillow simplehound ];
"signal_messenger" = ps: with ps; [ ]; # missing inputs: pysignalclirestapi
"simplepush" = ps: with ps; [ ]; # missing inputs: simplepush
"simplisafe" = ps: with ps; [ ]; # missing inputs: simplisafe-python
"simplisafe" = ps: with ps; [ simplisafe-python ];
"simulated" = ps: with ps; [ ];
"sinch" = ps: with ps; [ ]; # missing inputs: clx-sdk-xms
"sisyphus" = ps: with ps; [ ]; # missing inputs: sisyphus-control
Expand Down
1 change: 1 addition & 0 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ in with py.pkgs; buildPythonApplication rec {
"search"
"shell_command"
"shopping_list"
"simplisafe"
"simulated"
"sensor"
"smarttub"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7633,6 +7633,8 @@ in {

simple-websocket-server = callPackage ../development/python-modules/simple-websocket-server { };

simplisafe-python = callPackage ../development/python-modules/simplisafe-python { };

simpy = callPackage ../development/python-modules/simpy { };

singledispatch = callPackage ../development/python-modules/singledispatch { };
Expand Down

0 comments on commit 90d3914

Please sign in to comment.