depot/third_party/nixpkgs/pkgs/development/python-modules/simplisafe-python/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

55 lines
1,009 B
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pytz
, voluptuous
}:
buildPythonPackage rec {
pname = "simplisafe-python";
version = "10.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-VF8R+dty54GuWvYs/OqWhfGtOVieuxtfndQUxHhu5lc=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
pytz
voluptuous
];
checkInputs = [
aresponses
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 ];
};
}