Merge pull request #117069 from fabaff/simplisafe-python

This commit is contained in:
Martin Weinelt 2021-03-21 00:37:17 +01:00 committed by GitHub
commit 90d39143d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 1 deletions

View file

@ -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 ];
};
}

View file

@ -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

View file

@ -274,6 +274,7 @@ in with py.pkgs; buildPythonApplication rec {
"search"
"shell_command"
"shopping_list"
"simplisafe"
"simulated"
"sensor"
"smarttub"

View file

@ -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 { };