Skip to content

Commit

Permalink
python3Packages.black: 21.12b0 -> 22.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjheng committed Feb 15, 2022
1 parent 4df3d43 commit 273a460
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pkgs/development/python-modules/black/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{ stdenv, lib
, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm, pytestCheckHook
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools-scm
, pytestCheckHook
, aiohttp
, aiohttp-cors
, attrs
, click
, colorama
, dataclasses
Expand All @@ -19,13 +23,13 @@

buildPythonPackage rec {
pname = "black";
version = "21.12b0";
version = "22.1.0";

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
hash = "sha256-d7gPaTpWni5SeVhFljTxjfmwuiYluk4MLV2lvkLm8rM=";
hash = "sha256-p8AZLTVjX2/BF0vldct5FekuXdYp7nn9rw3PpBqAr7U=";
};

nativeBuildInputs = [ setuptools-scm ];
Expand Down Expand Up @@ -61,17 +65,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
aiohttp-cors
attrs
click
colorama
mypy-extensions
pathspec
platformdirs
tomli
typed-ast # required for tests and python2 extra
uvloop
] ++ lib.optional (pythonOlder "3.7") dataclasses
++ lib.optional (pythonOlder "3.8") typing-extensions;
] ++ lib.optional (pythonOlder "3.8") typed-ast
++ lib.optional (pythonOlder "3.10") typing-extensions;

meta = with lib; {
description = "The uncompromising Python code formatter";
Expand Down

0 comments on commit 273a460

Please sign in to comment.