git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.simplisafe-python: 2021.10.0 -> 2021.11.0
commit77142ce97b52c44e0044ad56f32f815e26ac95a7 authorFabian Affolter <mail@fabian-affolter.ch> dateWed 10 Nov 2021, 16:38 (5 years ago) parentb56d7a7
1 file changed+18−5
pkgs/development/python-modules/simplisafe-python/default.nix+18−5
pkgs/development/python-modules/simplisafe-python/default.nix+18−5
@@ -4,6 +4,7 @@
44, asynctest
55, backoff
66, buildPythonPackage
7+, docutils
78, fetchFromGitHub
89, poetry-core
910, pytest-aiohttp
@@ -18,15 +19,16 @@
1819
1920buildPythonPackage rec {
2021 pname = "simplisafe-python";
21− version = "2021.10.0";
22+ version = "2021.11.0";
2223 format = "pyproject";
23− disabled = pythonOlder "3.7";
24+
25+ disabled = pythonOlder "3.8";
2426
2527 src = fetchFromGitHub {
2628 owner = "bachya";
2729 repo = pname;
2830 rev = version;
29− sha256 = "sha256-J0uMlczR7y5wDchaOjp5d3Vf36WfRmt7d51koGiNHBk=";
31+ sha256 = "sha256-0SPUgdIU6zTUrvQucPHl8JGhXqFtNwwXc9GXlnarjBY=";
3032 };
3133
3234 nativeBuildInputs = [ poetry-core ];
@@ -34,6 +36,7 @@ buildPythonPackage rec {
3436 propagatedBuildInputs = [
3537 aiohttp
3638 backoff
39+ docutils
3740 pytz
3841 types-pytz
3942 voluptuous
@@ -48,15 +51,25 @@ buildPythonPackage rec {
4851 pytestCheckHook
4952 ];
5053
54+ postPatch = ''
55+ substituteInPlace pyproject.toml \
56+ --replace 'docutils = "<0.18"' 'docutils = "*"'
57+ '';
58+
5159 disabledTests = [
5260 # simplipy/api.py:253: InvalidCredentialsError
5361 "test_request_error_failed_retry"
5462 "test_update_error"
5563 ];
5664
57− disabledTestPaths = [ "examples/" ];
65+ disabledTestPaths = [
66+ # Ignore the examples as they are prefixed with test_
67+ "examples/"
68+ ];
5869
59− pythonImportsCheck = [ "simplipy" ];
70+ pythonImportsCheck = [
71+ "simplipy"
72+ ];
6073
6174 __darwinAllowLocalNetworking = true;
6275