diff options
author | sveitser <sveitser@gmail.com> | 2021-04-26 09:21:40 +0800 |
---|---|---|
committer | sveitser <sveitser@gmail.com> | 2021-05-31 19:42:44 +0800 |
commit | 0e7ee4d6a05201a08944f81c33337a72b84fa5d0 (patch) | |
tree | 0bf563f6855d54ead148512b647d2c55b1096051 /pkgs/development/python-modules/black | |
parent | 58240d3c2177ec082640073f8dcfca5f299e0a70 (diff) |
python3Packages.black: 20.8b1 -> 21.5b1
- Avoid excluding files during tests by setting a project root. - Enable some previously disabled tests.
Diffstat (limited to 'pkgs/development/python-modules/black')
-rw-r--r-- | pkgs/development/python-modules/black/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 3346afbb4ab9f..0ce3b8d0eaea8 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -8,6 +8,7 @@ , dataclasses , mypy-extensions , pathspec +, parameterized , regex , toml , typed-ast @@ -15,13 +16,13 @@ buildPythonPackage rec { pname = "black"; - version = "20.8b1"; + version = "21.5b1"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"; + sha256 = "1cdkrl5vw26iy7s23v2zpr39m6g5xsgxhfhagzzflgfbvdc56s93"; }; nativeBuildInputs = [ setuptools_scm ]; @@ -30,19 +31,19 @@ buildPythonPackage rec { # Black starts a local server and needs to bind a local address. __darwinAllowLocalNetworking = true; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ pytestCheckHook parameterized ]; preCheck = '' export PATH="$PATH:$out/bin" + + # The top directory /build matches black's DEFAULT_EXCLUDE regex. + # Make /build the project root for black tests to avoid excluding files. + touch ../.git ''; disabledTests = [ - # Don't know why these tests fails - "test_cache_multiple_files" - "test_failed_formatting_does_not_get_cached" # requires network access "test_gen_check_output" - "test_process_queue" ] ++ lib.optionals stdenv.isDarwin [ # fails on darwin "test_expression_diff" |