diff options
author | Keshav Kini <keshav.kini@gmail.com> | 2020-12-10 18:20:58 -0800 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-12-11 15:48:59 +0100 |
commit | fe5f82fd99b6cc4bb5c92d5fbce5aaaef539375f (patch) | |
tree | d34cb2ae977eb2690657e063e25ffb07ef6bd7c7 /pkgs/development/python-modules/black | |
parent | 5103ebd8b8d15c5660f0ca707b4b434b0ac114aa (diff) |
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.
Diffstat (limited to 'pkgs/development/python-modules/black')
-rw-r--r-- | pkgs/development/python-modules/black/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index f0a25dfb0b12e..3346afbb4ab9f 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -5,6 +5,7 @@ , appdirs , attrs , click +, dataclasses , mypy-extensions , pathspec , regex @@ -59,7 +60,7 @@ buildPythonPackage rec { toml typed-ast typing-extensions - ]; + ] ++ lib.optional (pythonOlder "3.7") dataclasses; meta = with lib; { description = "The uncompromising Python code formatter"; |