python3Packages.black: 21.5b1 -> 21.6b0
This commit is contained in:
parent
afdb5675a1
commit
a6a82884a5
@ -5,6 +5,7 @@
|
|||||||
, appdirs
|
, appdirs
|
||||||
, attrs
|
, attrs
|
||||||
, click
|
, click
|
||||||
|
, colorama
|
||||||
, dataclasses
|
, dataclasses
|
||||||
, mypy-extensions
|
, mypy-extensions
|
||||||
, pathspec
|
, pathspec
|
||||||
@ -12,17 +13,20 @@
|
|||||||
, regex
|
, regex
|
||||||
, toml
|
, toml
|
||||||
, typed-ast
|
, typed-ast
|
||||||
, typing-extensions }:
|
, typing-extensions
|
||||||
|
, uvloop
|
||||||
|
}:
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "black";
|
pname = "black";
|
||||||
version = "21.5b1";
|
version = "21.6b0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1cdkrl5vw26iy7s23v2zpr39m6g5xsgxhfhagzzflgfbvdc56s93";
|
sha256 = "016f6bhnnnbcrrh3cvmpk77ww0nykv5n1qvgf8b3044dm14264yw";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
@ -31,7 +35,7 @@ buildPythonPackage rec {
|
|||||||
# Black starts a local server and needs to bind a local address.
|
# Black starts a local server and needs to bind a local address.
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook parameterized ];
|
checkInputs = [ pytestCheckHook parameterized ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export PATH="$PATH:$out/bin"
|
export PATH="$PATH:$out/bin"
|
||||||
@ -39,6 +43,9 @@ buildPythonPackage rec {
|
|||||||
# The top directory /build matches black's DEFAULT_EXCLUDE regex.
|
# The top directory /build matches black's DEFAULT_EXCLUDE regex.
|
||||||
# Make /build the project root for black tests to avoid excluding files.
|
# Make /build the project root for black tests to avoid excluding files.
|
||||||
touch ../.git
|
touch ../.git
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
# Work around https://github.com/psf/black/issues/2105
|
||||||
|
export TMPDIR="/tmp"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
@ -55,19 +62,21 @@ buildPythonPackage rec {
|
|||||||
appdirs
|
appdirs
|
||||||
attrs
|
attrs
|
||||||
click
|
click
|
||||||
|
colorama
|
||||||
mypy-extensions
|
mypy-extensions
|
||||||
pathspec
|
pathspec
|
||||||
regex
|
regex
|
||||||
toml
|
toml
|
||||||
typed-ast
|
typed-ast # required for tests and python2 extra
|
||||||
typing-extensions
|
uvloop
|
||||||
] ++ lib.optional (pythonOlder "3.7") dataclasses;
|
] ++ lib.optional (pythonOlder "3.7") dataclasses
|
||||||
|
++ lib.optional (pythonOlder "3.8") typing-extensions;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The uncompromising Python code formatter";
|
description = "The uncompromising Python code formatter";
|
||||||
homepage = "https://github.com/psf/black";
|
homepage = "https://github.com/psf/black";
|
||||||
changelog = "https://github.com/psf/black/blob/${version}/CHANGES.md";
|
changelog = "https://github.com/psf/black/blob/${version}/CHANGES.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ sveitser ];
|
maintainers = with maintainers; [ sveitser ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user