python312Packages.betterproto: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-16 16:37:16 +02:00
parent 2a95659c38
commit 6568eccf17

View File

@ -1,21 +1,22 @@
{ buildPythonPackage {
, fetchFromGitHub buildPythonPackage,
, lib fetchFromGitHub,
, pythonOlder lib,
, poetry-core pythonOlder,
, grpclib poetry-core,
, python-dateutil grpclib,
, black python-dateutil,
, jinja2 black,
, isort jinja2,
, python isort,
, pydantic python,
, pytestCheckHook pydantic,
, pytest-asyncio pytestCheckHook,
, pytest-mock pytest-asyncio,
, typing-extensions pytest-mock,
, tomlkit typing-extensions,
, grpcio-tools tomlkit,
grpcio-tools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -32,9 +33,7 @@ buildPythonPackage rec {
hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI="; hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
grpclib grpclib
@ -57,9 +56,7 @@ buildPythonPackage rec {
tomlkit tomlkit
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [ "betterproto" ];
"betterproto"
];
# The tests require the generation of code before execution. This requires # The tests require the generation of code before execution. This requires
# the protoc-gen-python_betterproto script from the package to be on PATH. # the protoc-gen-python_betterproto script from the package to be on PATH.
@ -74,9 +71,7 @@ buildPythonPackage rec {
"tests/inputs/oneof/test_oneof.py" "tests/inputs/oneof/test_oneof.py"
]; ];
disabledTests = [ disabledTests = [ "test_pydantic_no_value" ];
"test_pydantic_no_value"
];
meta = with lib; { meta = with lib; {
description = "Code generator & library for Protobuf 3 and async gRPC"; description = "Code generator & library for Protobuf 3 and async gRPC";