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 = pname;
23 rev = "refs/tags/v${version}";
24 hash = "sha256-G3/lUgV60CMLskUo83TlvLLIfJtu5DEz+94mdVI4OrI=";
25 };
26
27 propagatedBuildInputs = [ aiohttp ];
28
29 nativeCheckInputs = [
30 faker
31 pytest-aiohttp
32 pytest-mock
33 pytestCheckHook
34 ];
35
36 disabledTests = [
37 # Not all tests are ready yet
38 "test_successful"
39 ];
40
41 pythonImportsCheck = [ "aiolookin" ];
42
43 meta = with lib; {
44 description = "Python client for interacting with LOOKin devices";
45 homepage = "https://github.com/ANMalko/aiolookin";
46 changelog = "https://github.com/ANMalko/aiolookin/blob/v${version}/CHANGELOG.md";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}