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 5 , appdirs 6 6 , attrs 7 7 , click 8 + , dataclasses 8 9 , mypy-extensions 9 10 , pathspec 10 11 , regex ··· 59 60 toml 60 61 typed-ast 61 62 typing-extensions 62 - ]; 63 + ] ++ lib.optional (pythonOlder "3.7") dataclasses; 63 64 64 65 meta = with lib; { 65 66 description = "The uncompromising Python code formatter";