git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #145373 from fabaff/bump-simplisafe-python

python3Packages.simplisafe-python: 2021.10.0 -> 2021.11.0

commit8f06fa3a26c9c38e25980b9414d212935f55a499 authorFabian Affolter <fabian@affolter-engineering.ch> dateThu 25 Nov 2021, 23:40 (5 years ago) parent5deee461678619
1 file changed+21−6
pkgs/development/python-modules/simplisafe-python/default.nix+21−6
pkgs/development/python-modules/simplisafe-python/default.nix+21−6
@@ -4,6 +4,7 @@
44, asynctest
55, backoff
66, buildPythonPackage
7+, docutils
78, fetchFromGitHub
89, poetry-core
910, pytest-aiohttp
@@ -18,22 +19,26 @@
1819
1920buildPythonPackage rec {
2021 pname = "simplisafe-python";
21− version = "2021.10.0";
22+ version = "2021.11.2";
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-5X2qvrACV9OTVYSZYxFncFOgrgywKvVDbC6IVFnJBtw=";
3032 };
3133
32− nativeBuildInputs = [ poetry-core ];
34+ nativeBuildInputs = [
35+ poetry-core
36+ ];
3337
3438 propagatedBuildInputs = [
3539 aiohttp
3640 backoff
41+ docutils
3742 pytz
3843 types-pytz
3944 voluptuous
@@ -48,15 +53,25 @@ buildPythonPackage rec {
4853 pytestCheckHook
4954 ];
5055
56+ postPatch = ''
57+ substituteInPlace pyproject.toml \
58+ --replace 'docutils = "<0.18"' 'docutils = "*"'
59+ '';
60+
5161 disabledTests = [
5262 # simplipy/api.py:253: InvalidCredentialsError
5363 "test_request_error_failed_retry"
5464 "test_update_error"
5565 ];
5666
57− disabledTestPaths = [ "examples/" ];
67+ disabledTestPaths = [
68+ # Ignore the examples as they are prefixed with test_
69+ "examples/"
70+ ];
5871
59− pythonImportsCheck = [ "simplipy" ];
72+ pythonImportsCheck = [
73+ "simplipy"
74+ ];
6075
6176 __darwinAllowLocalNetworking = true;
6277