depot/third_party/nixpkgs/pkgs/development/python-modules/aioskybell/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

47 lines
839 B
Nix

{ lib
, aiofiles
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioskybell";
version = "22.7.0";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "tkdrob";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-aBT1fDFtq1vasTvCnAXKV2vmZ6LBLZqRCiepv1HDJ+Q=";
};
propagatedBuildInputs = [
aiohttp
aiofiles
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aioskybell"
];
meta = with lib; {
description = "API client for Skybell doorbells";
homepage = "https://github.com/tkdrob/aioskybell";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}