diff --git a/pkgs/development/python-modules/python-picnic-api2/default.nix b/pkgs/development/python-modules/python-picnic-api2/default.nix index 83bd486ef516..c2466eaddc56 100644 --- a/pkgs/development/python-modules/python-picnic-api2/default.nix +++ b/pkgs/development/python-modules/python-picnic-api2/default.nix @@ -4,23 +4,28 @@ hatchling, lib, pytestCheckHook, - python-dotenv, + pythonAtLeast, requests, typing-extensions, }: buildPythonPackage rec { pname = "python-picnic-api2"; - version = "1.3.2"; + version = "1.3.4"; pyproject = true; src = fetchFromGitHub { owner = "codesalatdev"; repo = "python-picnic-api"; tag = "v${version}"; - hash = "sha256-GFxs2ZjyGADMG8YWtpy+sAZClLOYt70KtEp5MCgY+7I="; + hash = "sha256-ytzzGr/z0jrsudtCBrcvGITo4DxxC8JCmSmQ8ybeomM="; }; + postPatch = lib.optionalString (pythonAtLeast "3.14") '' + substituteInPlace tests/test_session.py \ + --replace-fail '"Accept-Encoding": "gzip, deflate",' '"Accept-Encoding": "gzip, deflate, zstd",' + ''; + build-system = [ hatchling ]; dependencies = [