From 1cf24a9a0c0049af84cee4f79437cdf4acbd8d18 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 17 Aug 2022 15:44:16 -0700 Subject: [PATCH] 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 --- .../python-modules/requests-cache/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index 23d24c944565..569a29d9b5cb 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -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