From 2fee354ae4be76a71bd0f4dc8b0a68cd6f55f9c0 Mon Sep 17 00:00:00 2001 From: Ivan Tkachev Date: Fri, 9 Jul 2021 11:42:41 +0300 Subject: [PATCH] python3Packages.cattrs: disable for python older than 3.7 --- pkgs/development/python-modules/cattrs/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index 7f51c89e3e4e..409fc7b28de5 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;