diff options
Diffstat (limited to 'pkgs/development/python-modules/pyoverkiz/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyoverkiz/default.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pyoverkiz/default.nix b/pkgs/development/python-modules/pyoverkiz/default.nix index f8e09d76c0e95..0cc34cdc4b0bf 100644 --- a/pkgs/development/python-modules/pyoverkiz/default.nix +++ b/pkgs/development/python-modules/pyoverkiz/default.nix @@ -7,6 +7,7 @@ boto3, buildPythonPackage, fetchFromGitHub, + fetchpatch2, poetry-core, pyhumps, pytest-asyncio, @@ -17,7 +18,7 @@ buildPythonPackage rec { pname = "pyoverkiz"; - version = "1.13.12"; + version = "1.13.14"; pyproject = true; disabled = pythonOlder "3.7"; @@ -26,13 +27,23 @@ buildPythonPackage rec { owner = "iMicknl"; repo = "python-overkiz-api"; rev = "refs/tags/v${version}"; - hash = "sha256-zcFcF0a3gyY3WmRiRlQntO8hjbkUm2Cxumn2aKHchvY="; + hash = "sha256-HlDydPreHe/O+fqVwjkwQlQx0o9UxI/fwA+idB02Gng="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"' - ''; + patches = [ + # https://github.com/iMicknl/python-overkiz-api/pull/1309 + (fetchpatch2 { + url = "https://github.com/iMicknl/python-overkiz-api/commit/9e5bbec3fc88faac9dae0c0c001ed7582c4933e2.patch"; + excludes = [ "poetry.lock" ]; + hash = "sha256-KzagDvljkKoUJT+41o7Jv5OPLpPXQDeGmz3O/HOk1YQ="; + }) + # https://github.com/iMicknl/python-overkiz-api/pull/1326 + (fetchpatch2 { + name = "aiohttp-3.10-compat.patch"; + url = "https://github.com/iMicknl/python-overkiz-api/commit/f745c0a9cd654579135624aa472723f85d301aed.patch"; + hash = "sha256-FXyWLnbu0Kqe/dWrWdi4cvyttDQqexhHo0nTumfUo4g="; + }) + ]; build-system = [ poetry-core ]; @@ -40,11 +51,10 @@ buildPythonPackage rec { aiohttp attrs backoff - backports-strenum boto3 pyhumps warrant-lite - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ backports-strenum ]; nativeCheckInputs = [ pytest-asyncio |