3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/simplisafe-python/default.nix
2021-07-23 22:45:29 +02:00

58 lines
1 KiB
Nix

{ lib
, aiohttp
, aioresponses
, asynctest
, backoff
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pytz
, voluptuous
}:
buildPythonPackage rec {
pname = "simplisafe-python";
version = "11.0.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-sIv7zoLp+1CfeyhVYWMp93TkNk+h14WawOJOQMhwAp8=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
backoff
pytz
voluptuous
];
checkInputs = [
aioresponses
asynctest
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [ "examples/" ];
pythonImportsCheck = [ "simplipy" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Python library the SimpliSafe API";
homepage = "https://simplisafe-python.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}