git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.simplisafe-python: 2021.10.0 -> 2021.11.0
77142ceFabian Affolter
pkgs/development/python-modules/simplisafe-python/default.nix+18−5
@@ -4,6 +4,7 @@
4, asynctest
4, asynctest
5, backoff
5, backoff
6, buildPythonPackage
6, buildPythonPackage
7+, docutils
7, fetchFromGitHub
8, fetchFromGitHub
8, poetry-core
9, poetry-core
9, pytest-aiohttp
10, pytest-aiohttp
@@ -18,15 +19,16 @@
18
19
19buildPythonPackage rec {
20buildPythonPackage rec {
20 pname = "simplisafe-python";
21 pname = "simplisafe-python";
21− version = "2021.10.0";
22+ version = "2021.11.0";
22 format = "pyproject";
23 format = "pyproject";
24+
23− disabled = pythonOlder "3.7";
25+ disabled = pythonOlder "3.8";
24
26
25 src = fetchFromGitHub {
27 src = fetchFromGitHub {
26 owner = "bachya";
28 owner = "bachya";
27 repo = pname;
29 repo = pname;
28 rev = version;
30 rev = version;
29− sha256 = "sha256-J0uMlczR7y5wDchaOjp5d3Vf36WfRmt7d51koGiNHBk=";
31+ sha256 = "sha256-0SPUgdIU6zTUrvQucPHl8JGhXqFtNwwXc9GXlnarjBY=";
30 };
32 };
31
33
32 nativeBuildInputs = [ poetry-core ];
34 nativeBuildInputs = [ poetry-core ];
@@ -34,6 +36,7 @@ buildPythonPackage rec {
34 propagatedBuildInputs = [
36 propagatedBuildInputs = [
35 aiohttp
37 aiohttp
36 backoff
38 backoff
39+ docutils
37 pytz
40 pytz
38 types-pytz
41 types-pytz
39 voluptuous
42 voluptuous
@@ -48,15 +51,25 @@ buildPythonPackage rec {
48 pytestCheckHook
51 pytestCheckHook
49 ];
52 ];
50
53
54+ postPatch = ''
55+ substituteInPlace pyproject.toml \
56+ --replace 'docutils = "<0.18"' 'docutils = "*"'
57+ '';
58+
51 disabledTests = [
59 disabledTests = [
52 # simplipy/api.py:253: InvalidCredentialsError
60 # simplipy/api.py:253: InvalidCredentialsError
53 "test_request_error_failed_retry"
61 "test_request_error_failed_retry"
54 "test_update_error"
62 "test_update_error"
55 ];
63 ];
56
64
57− disabledTestPaths = [ "examples/" ];
65+ disabledTestPaths = [
66+ # Ignore the examples as they are prefixed with test_
67+ "examples/"
68+ ];
58
69
59− pythonImportsCheck = [ "simplipy" ];
70+ pythonImportsCheck = [
71+ "simplipy"
72+ ];
60
73
61 __darwinAllowLocalNetworking = true;
74 __darwinAllowLocalNetworking = true;
62
75