2021-03-20 23:31:08 +01:00
|
|
|
{ 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";
|
2021-05-02 03:26:23 +02:00
|
|
|
version = "9.6.10";
|
2021-03-20 23:31:08 +01:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-02 03:26:23 +02:00
|
|
|
sha256 = "0cc5kxxishxhkg1nqmgbh36yxs8yjfynmimzjnaqkqfrs9iq46mr";
|
2021-03-20 23:31:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|