depot/third_party/nixpkgs/pkgs/development/python-modules/reolink-aio/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

46 lines
958 B
Nix

{ lib
, aiohttp
, aiortsp
, buildPythonPackage
, fetchFromGitHub
, orjson
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "reolink-aio";
version = "0.8.7";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "starkillerOG";
repo = "reolink_aio";
rev = "refs/tags/${version}";
hash = "sha256-+Yhw7Wbt0K7BLXatd/UANnnNWPkxgk8SqAyV9Kk4hos=";
};
propagatedBuildInputs = [
aiohttp
aiortsp
orjson
typing-extensions
];
pythonImportsCheck = [
"reolink_aio"
];
# All tests require a network device
doCheck = false;
meta = with lib; {
description = "Module to interact with the Reolink IP camera API";
homepage = "https://github.com/starkillerOG/reolink_aio";
changelog = "https://github.com/starkillerOG/reolink_aio/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}