Skip to content

Commit

Permalink
python.pkgs.black: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Nov 17, 2020
1 parent 2743e51 commit 9c47b09
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions pkgs/development/python-modules/black/default.nix
Expand Up @@ -10,7 +10,8 @@
, regex
, toml
, typed-ast
, typing-extensions }:
, typing-extensions
}:

buildPythonPackage rec {
pname = "black";
Expand All @@ -29,6 +30,20 @@ buildPythonPackage rec {
# Black starts a local server and needs to bind a local address.
__darwinAllowLocalNetworking = true;

propagatedBuildInputs = [
aiohttp
aiohttp-cors
appdirs
attrs
click
mypy-extensions
pathspec
regex
toml
typed-ast
typing-extensions
];

checkInputs = [ pytestCheckHook ];

preCheck = ''
Expand All @@ -47,20 +62,6 @@ buildPythonPackage rec {
"test_expression_diff"
];

propagatedBuildInputs = [
aiohttp
aiohttp-cors
appdirs
attrs
click
mypy-extensions
pathspec
regex
toml
typed-ast
typing-extensions
];

meta = with lib; {
description = "The uncompromising Python code formatter";
homepage = "https://github.com/psf/black";
Expand Down

0 comments on commit 9c47b09

Please sign in to comment.