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.
This commit is contained in:
Theodore Ni 2022-08-25 09:59:41 -07:00
parent 881be4449f
commit e298e86197
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

@ -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