2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
44 lines
937 B
Nix
44 lines
937 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, orjson
|
|
, pythonOlder
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reolink-aio";
|
|
version = "0.7.15";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "starkillerOG";
|
|
repo = "reolink_aio";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-BSl7dECYJIjR9QTvcizUF3Lz1jmgm9xi4kPt7PdO/Nk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
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 ];
|
|
};
|
|
}
|