python3Packages.cattrs: disable for python older than 3.7

This commit is contained in:
Ivan Tkachev 2021-07-09 11:42:41 +03:00
parent d7b66a7a01
commit 2fee354ae4

View file

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