depot/third_party/nixpkgs/pkgs/development/python-modules/reolink-aio/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
936 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, orjson
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "reolink-aio";
version = "0.8.4";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "starkillerOG";
repo = "reolink_aio";
rev = "refs/tags/${version}";
hash = "sha256-wayaXNAZCo387laJRxiJai79CRJGgDlFYfSd603CAEA=";
};
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 ];
};
}