Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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.

authored by Keshav Kini and committed by Frederik Rietdijk fe5f82fd 5103ebd8

+2 -1
+2 -1
pkgs/development/python-modules/black/default.nix
··· 5 , appdirs 6 , attrs 7 , click 8 , mypy-extensions 9 , pathspec 10 , regex ··· 59 toml 60 typed-ast 61 typing-extensions 62 - ]; 63 64 meta = with lib; { 65 description = "The uncompromising Python code formatter";
··· 5 , appdirs 6 , attrs 7 , click 8 + , dataclasses 9 , mypy-extensions 10 , pathspec 11 , regex ··· 60 toml 61 typed-ast 62 typing-extensions 63 + ] ++ lib.optional (pythonOlder "3.7") dataclasses; 64 65 meta = with lib; { 66 description = "The uncompromising Python code formatter";