Merge pull request #179455 from SuperSandro2000/black

black: 22.3.0 -> 22.6.0

authored by Sandro and committed by GitHub 1db6fe6a d9def27d

+37 -23
+2 -3
pkgs/development/python-modules/black/default.nix
··· 9 , aiohttp-cors 10 , click 11 , colorama 12 - , dataclasses 13 , mypy-extensions 14 , pathspec 15 , parameterized ··· 23 24 buildPythonPackage rec { 25 pname = "black"; 26 - version = "22.3.0"; 27 28 disabled = pythonOlder "3.6"; 29 30 src = fetchPypi { 31 inherit pname version; 32 - hash = "sha256-NQILiIbAIs7ZKCtRtah1ttGrDDh7MaBluE23wzCFynk="; 33 }; 34 35 nativeBuildInputs = [ setuptools-scm ];
··· 9 , aiohttp-cors 10 , click 11 , colorama 12 , mypy-extensions 13 , pathspec 14 , parameterized ··· 22 23 buildPythonPackage rec { 24 pname = "black"; 25 + version = "22.6.0"; 26 27 disabled = pythonOlder "3.6"; 28 29 src = fetchPypi { 30 inherit pname version; 31 + hash = "sha256-bG054ortN5rsQNocZUNMd9deZbtZoeHCg95UX7Tnxsk="; 32 }; 33 34 nativeBuildInputs = [ setuptools-scm ];
+2 -2
pkgs/development/python-modules/diagrams/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 - , black 6 , jinja2 7 , poetry-core 8 , round ··· 38 patches = [ 39 # The build-system section is missing 40 ./build_poetry.patch 41 ]; 42 43 checkInputs = [ pytestCheckHook ]; 44 45 # Despite living in 'tool.poetry.dependencies', 46 # these are only used at build time to process the image resource files 47 - nativeBuildInputs = [ black inkscape imagemagick jinja2 poetry-core round ]; 48 49 propagatedBuildInputs = [ graphviz ]; 50
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 , jinja2 6 , poetry-core 7 , round ··· 37 patches = [ 38 # The build-system section is missing 39 ./build_poetry.patch 40 + ./remove-black-requirement.patch 41 ]; 42 43 checkInputs = [ pytestCheckHook ]; 44 45 # Despite living in 'tool.poetry.dependencies', 46 # these are only used at build time to process the image resource files 47 + nativeBuildInputs = [ inkscape imagemagick jinja2 poetry-core round ]; 48 49 propagatedBuildInputs = [ graphviz ]; 50
+24
pkgs/development/python-modules/diagrams/remove-black-requirement.patch
···
··· 1 + diff --git a/autogen.sh b/autogen.sh 2 + index acbcacb..1f60b83 100755 3 + --- a/autogen.sh 4 + +++ b/autogen.sh 5 + @@ -21,11 +21,6 @@ 6 + exit 1 7 + fi 8 + 9 + -if ! [ -x "$(command -v black)" ]; then 10 + - echo 'black is not installed' 11 + - exit 1 12 + -fi 13 + - 14 + # preprocess the resources 15 + for pvd in "${providers[@]}"; do 16 + # convert the svg to png for azure provider 17 + @@ -55,7 +50,3 @@ 18 + # Generate doc for custom module 19 + echo "generating the docs for custom" 20 + python -m scripts.generate "custom" 21 + - 22 + -# run black 23 + -echo "linting the all the diagram modules" 24 + -black "$app_root_dir"/**/*.py
+4 -8
pkgs/development/python-modules/papermill/default.nix
··· 15 , entrypoints 16 , tenacity 17 , futures ? null 18 - , black 19 , backports_tempfile 20 , isPy27 21 - , pytest 22 - , pytest-cov 23 , pytest-mock 24 }: 25 ··· 46 requests 47 entrypoints 48 tenacity 49 - black 50 ] ++ lib.optionals isPy27 [ 51 futures 52 backports_tempfile 53 ]; 54 55 checkInputs = [ 56 - pytest 57 - pytest-cov 58 pytest-mock 59 ]; 60 61 - checkPhase = '' 62 - HOME=$(mktemp -d) pytest 63 ''; 64 65 # the test suite depends on cloud resources azure/aws
··· 15 , entrypoints 16 , tenacity 17 , futures ? null 18 , backports_tempfile 19 , isPy27 20 + , pytestCheckHook 21 , pytest-mock 22 }: 23 ··· 44 requests 45 entrypoints 46 tenacity 47 ] ++ lib.optionals isPy27 [ 48 futures 49 backports_tempfile 50 ]; 51 52 checkInputs = [ 53 + pytestCheckHook 54 pytest-mock 55 ]; 56 57 + preCheck = '' 58 + export HOME=$(mktemp -d) 59 ''; 60 61 # the test suite depends on cloud resources azure/aws
-8
pkgs/development/python-modules/pulumi/default.nix
··· 13 14 15 # for tests 16 - , tox 17 , go 18 , pulumictl 19 - , bash 20 , pylint 21 , pytest 22 , pytest-timeout 23 - , coverage 24 - , black 25 , wheel 26 , pytest-asyncio 27 ··· 55 pulumi-bin 56 pulumictl 57 mypy 58 - bash 59 go 60 - tox 61 pytest 62 pytest-timeout 63 - coverage 64 pytest-asyncio 65 wheel 66 - black 67 ]; 68 69 sourceRoot="source/sdk/python/lib";
··· 13 14 15 # for tests 16 , go 17 , pulumictl 18 , pylint 19 , pytest 20 , pytest-timeout 21 , wheel 22 , pytest-asyncio 23 ··· 51 pulumi-bin 52 pulumictl 53 mypy 54 go 55 pytest 56 pytest-timeout 57 pytest-asyncio 58 wheel 59 ]; 60 61 sourceRoot="source/sdk/python/lib";
+5 -2
pkgs/development/python-modules/schema-salad/default.nix
··· 32 ]; 33 34 checkInputs = [ 35 - black 36 pytestCheckHook 37 - ]; 38 39 disabledTests = [ 40 # Setup for these tests requires network access ··· 47 pythonImportsCheck = [ 48 "schema_salad" 49 ]; 50 51 meta = with lib; { 52 description = "Semantic Annotations for Linked Avro Data";
··· 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 + ] ++ passthru.optional-dependencies.pycodegen; 37 38 disabledTests = [ 39 # Setup for these tests requires network access ··· 46 pythonImportsCheck = [ 47 "schema_salad" 48 ]; 49 + 50 + passthru.optional-dependencies = { 51 + pycodegen = [ black ]; 52 + }; 53 54 meta = with lib; { 55 description = "Semantic Annotations for Linked Avro Data";