1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 faker,
6 fetchFromGitHub,
7 pytest-aiohttp,
8 pytest-mock,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "aiolookin";
15 version = "1.0.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "ANMalko";
22 repo = "aiolookin";
23 tag = "v${version}";
24 hash = "sha256-G3/lUgV60CMLskUo83TlvLLIfJtu5DEz+94mdVI4OrI=";
25 };
26
27 propagatedBuildInputs = [ aiohttp ];
28
29 doCheck = false; # all tests are async and no async plugin is configured
30
31 nativeCheckInputs = [
32 faker
33 pytest-aiohttp
34 pytest-mock
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "aiolookin" ];
39
40 meta = with lib; {
41 description = "Python client for interacting with LOOKin devices";
42 homepage = "https://github.com/ANMalko/aiolookin";
43 changelog = "https://github.com/ANMalko/aiolookin/blob/v${version}/CHANGELOG.md";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}