fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
948 B
Nix
48 lines
948 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "loqedapi";
|
|
version = "2.1.10";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cpolhout";
|
|
repo = "loqedAPI";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-IYzrGqql6mmm+FmasxFJvKgHvg7n81WOu+GGAEQ1+Os=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "loqedAPI" ];
|
|
|
|
meta = with lib; {
|
|
description = "Module to interact with the Loqed Smart Door Lock API";
|
|
homepage = "https://github.com/cpolhout/loqedAPI";
|
|
changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/v${version}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|