1{
2 lib,
3 buildPythonPackage,
4 bx-py-utils,
5 colorlog,
6 fetchFromGitHub,
7 importlib-resources,
8 jaraco-classes,
9 jaraco-collections,
10 jaraco-itertools,
11 jaraco-context,
12 jaraco-functools,
13 jaraco-net,
14 keyring,
15 lomond,
16 more-itertools,
17 platformdirs,
18 pytest-responses,
19 pytestCheckHook,
20 requests,
21 requests-toolbelt,
22 setuptools,
23 setuptools-scm,
24}:
25
26buildPythonPackage rec {
27 pname = "jaraco-abode";
28 version = "6.4.0";
29 pyproject = true;
30
31 src = fetchFromGitHub {
32 owner = "jaraco";
33 repo = "jaraco.abode";
34 tag = "v${version}";
35 hash = "sha256-nnnVtNXQ7Sa4wXl0ay3OyjvOq2j90pTwhK24WR8mrBo=";
36 };
37
38 postPatch = ''
39 sed -i "/coherent\.licensed/d" pyproject.toml
40 '';
41
42 build-system = [
43 setuptools
44 setuptools-scm
45 ];
46
47 dependencies = [
48 requests
49 lomond
50 colorlog
51 keyring
52 requests-toolbelt
53 jaraco-collections
54 jaraco-context
55 jaraco-classes
56 jaraco-net
57 more-itertools
58 importlib-resources
59 bx-py-utils
60 platformdirs
61 jaraco-itertools
62 jaraco-functools
63 ];
64
65 nativeCheckInputs = [
66 pytest-responses
67 pytestCheckHook
68 ];
69
70 pythonImportsCheck = [ "jaraco.abode" ];
71
72 preCheck = ''
73 export HOME=$TEMP
74 '';
75
76 disabledTests = [
77 "_cookie_string"
78 "test_cookies"
79 "test_empty_cookies"
80 "test_invalid_cookies"
81 # Issue with the regex
82 "test_camera_capture_no_control_URLs"
83 ];
84
85 meta = {
86 changelog = "https://github.com/jaraco/jaraco.abode/blob/${src.tag}/NEWS.rst";
87 homepage = "https://github.com/jaraco/jaraco.abode";
88 description = "Library interfacing to the Abode home security system";
89 license = lib.licenses.mit;
90 maintainers = with lib.maintainers; [
91 jamiemagee
92 dotlambda
93 ];
94 };
95}