diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index 7f51c89e3e4..409fc7b28de 100644 --- a/pkgs/development/python-modules/cattrs/default.nix +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -1,6 +1,7 @@ { lib , attrs , bson +, pythonOlder , buildPythonPackage , fetchFromGitHub , hypothesis @@ -18,6 +19,10 @@ buildPythonPackage rec { version = "1.7.0"; format = "pyproject"; + # https://cattrs.readthedocs.io/en/latest/history.html#id33: + # "Python 2, 3.5 and 3.6 support removal. If you need it, use a version below 1.1.0." + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "Tinche"; repo = pname;