Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 setuptools,
8 wheel,
9}:
10
11buildPythonPackage rec {
12 pname = "loqedapi";
13 version = "2.1.10";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "cpolhout";
18 repo = "loqedAPI";
19 tag = "v${version}";
20 hash = "sha256-IYzrGqql6mmm+FmasxFJvKgHvg7n81WOu+GGAEQ1+Os=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 wheel
26 ];
27
28 propagatedBuildInputs = [
29 aiohttp
30 async-timeout
31 ];
32
33 # Tests require network access
34 doCheck = false;
35
36 pythonImportsCheck = [ "loqedAPI" ];
37
38 meta = {
39 description = "Module to interact with the Loqed Smart Door Lock API";
40 homepage = "https://github.com/cpolhout/loqedAPI";
41 changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/v${version}";
42 license = lib.licenses.bsd2;
43 maintainers = with lib.maintainers; [ fab ];
44 };
45}