1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 aiohttp,
7 python-slugify,
8 pytz,
9 aresponses,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "logi-circle";
15 version = "0.2.3";
16
17 disabled = pythonOlder "3.6";
18
19 format = "setuptools";
20
21 src = fetchFromGitHub {
22 owner = "evanjd";
23 repo = "python-logi-circle";
24 rev = "v${version}";
25 hash = "sha256-Q+uoaimJjn6MiO3jXGYyZ6cS0tqI06Azkq1QbNq2FN8=";
26 };
27
28 propagatedBuildInputs = [
29 aiohttp
30 python-slugify
31 pytz
32 ];
33
34 nativeCheckInputs = [
35 aresponses
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "logi_circle" ];
40
41 meta = {
42 description = "A Python library to communicate with Logi Circle cameras";
43 homepage = "https://github.com/evanjd/python-logi-circle";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}