python310Packages.requests-cache: remove attrs version constraint

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 commit is contained in:
Theodore Ni
2022-08-17 15:51:00 -07:00
parent 7b5c82c518
commit 1cf24a9a0c
@@ -42,6 +42,21 @@ buildPythonPackage rec {
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