python36Packages.black: fix broken dependency
In PR #96456, black was upgraded from 19.10b0 to 20.8b1. This new version of black depends on the dataclasses module, but that was only introduced into the standard library in Python 3.7; earlier versions of Python require the backport package of the same name. This commit addresses the missing dependency.
This commit is contained in:
parent
5103ebd8b8
commit
fe5f82fd99
@ -5,6 +5,7 @@
|
|||||||
, appdirs
|
, appdirs
|
||||||
, attrs
|
, attrs
|
||||||
, click
|
, click
|
||||||
|
, dataclasses
|
||||||
, mypy-extensions
|
, mypy-extensions
|
||||||
, pathspec
|
, pathspec
|
||||||
, regex
|
, regex
|
||||||
@ -59,7 +60,7 @@ buildPythonPackage rec {
|
|||||||
toml
|
toml
|
||||||
typed-ast
|
typed-ast
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
] ++ lib.optional (pythonOlder "3.7") dataclasses;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The uncompromising Python code formatter";
|
description = "The uncompromising Python code formatter";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user