blob: 4b58b061a009bb8fefe987f5f35fb2854c1ff815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "loqedapi";
version = "2.1.10";
pyproject = true;
src = fetchFromGitHub {
owner = "cpolhout";
repo = "loqedAPI";
tag = "v${version}";
hash = "sha256-IYzrGqql6mmm+FmasxFJvKgHvg7n81WOu+GGAEQ1+Os=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
aiohttp
async-timeout
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "loqedAPI" ];
meta = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}
|