1{ lib
2, aiohttp
3, buildPythonPackage
4, faker
5, fetchFromGitHub
6, pytest-aiohttp
7, pytest-mock
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "aiolookin";
14 version = "0.1.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "ANMalko";
21 repo = pname;
22 rev = "v${version}";
23 sha256 = "sha256-xFxkhKM/lX/kSg709wID7HlkfNKDlOcL3STUZOrHZJ8=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 ];
29
30 checkInputs = [
31 faker
32 pytest-aiohttp
33 pytest-mock
34 pytestCheckHook
35 ];
36
37 disabledTests = [
38 # Not all tests are ready yet
39 "test_successful"
40 ];
41
42 pythonImportsCheck = [
43 "aiolookin"
44 ];
45
46 meta = with lib; {
47 description = "Python client for interacting with LOOKin devices";
48 homepage = "https://github.com/ANMalko/aiolookin";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];
51 };
52}