From e298e86197b8cdef415d01b9b8f5c05b3a0f7ba6 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 25 Aug 2022 09:59:41 -0700 Subject: [PATCH] python310Packages.requests-cache: 0.9.5 -> 0.9.6 1. This version removes upper version constraints, so existing patches that unconstrain versions can be removed. 2. The repository owner was changed some time earlier. It works today because GitHub issues a 301 redirect to the new owner. Updates to the new owner to skip the 301 redirect. --- .../python-modules/requests-cache/default.nix | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index 569a29d9b5cb..45b03feb461d 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -26,37 +26,22 @@ buildPythonPackage rec { pname = "requests-cache"; - version = "0.9.5"; + version = "0.9.6"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { - owner = "reclosedev"; + owner = "requests-cache"; repo = "requests-cache"; rev = "v${version}"; - hash = "sha256-oVEai7SceZUdsGYlOOMxO6DxMZMVsvqXvEu0cHzq7lY="; + hash = "sha256-oFI5Rv/MAiPHiZts0PrNS+YMDFD/RxnMJ6deTxZNkSM="; }; nativeBuildInputs = [ poetry-core ]; - postPatch = '' - # - # There is no functional reason why attrs (and cattrs) need to be - # restricted, but the versions are in flux right now. Please read - # and follow the following issue for the latest: - # - # https://github.com/requests-cache/requests-cache/issues/675 - # - # This can be removed once that issue is resolved, or if the new - # major version is released. - # - substituteInPlace pyproject.toml \ - --replace 'attrs = "^21.2"' 'attrs = ">=21.2"' - ''; - propagatedBuildInputs = [ appdirs attrs