Skip to content

Commit

Permalink
python313Packages.betterproto: 2.0.0b6 -> 2.0.0b7
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Jan 19, 2025
1 parent e4f50e6 commit 3c99ffa
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pkgs/development/python-modules/betterproto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
python,
pydantic,
pytest7CheckHook,
cachelib,
pytest-asyncio,
pytest-mock,
typing-extensions,
Expand All @@ -21,7 +22,7 @@

buildPythonPackage rec {
pname = "betterproto";
version = "2.0.0b6";
version = "2.0.0b7";
pyproject = true;

disabled = pythonOlder "3.9";
Expand All @@ -30,9 +31,14 @@ buildPythonPackage rec {
owner = "danielgtaylor";
repo = "python-betterproto";
tag = "v.${version}";
hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI=";
hash = "sha256-T7QSPH8MFa1hxJOhXc3ZMM62/FxHWjCJJ59IpeM41rI=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "poetry-core>=1.0.0,<2" "poetry-core"
'';

build-system = [ poetry-core ];

dependencies = [
Expand All @@ -51,6 +57,7 @@ buildPythonPackage rec {
grpcio-tools
pydantic
pytest-asyncio
cachelib
pytest-mock
pytest7CheckHook
tomlkit
Expand All @@ -67,18 +74,13 @@ buildPythonPackage rec {
${python.interpreter} -m tests.generate
'';

disabledTestPaths = [
# https://github.com/danielgtaylor/python-betterproto/issues/530
"tests/inputs/oneof/test_oneof.py"
];

disabledTests = [
"test_pydantic_no_value"
# Test is flaky
"test_binary_compatibility"
];

meta = with lib; {
meta = {
description = "Code generator & library for Protobuf 3 and async gRPC";
mainProgram = "protoc-gen-python_betterproto";
longDescription = ''
Expand All @@ -88,7 +90,7 @@ buildPythonPackage rec {
'';
homepage = "https://github.com/danielgtaylor/python-betterproto";
changelog = "https://github.com/danielgtaylor/python-betterproto/blob/v.${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ nikstur ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nikstur ];
};
}

0 comments on commit 3c99ffa

Please sign in to comment.