python3Packages.betterproto: 2.0.0b6 -> 2.0.0b7 (#453121)

This commit is contained in:
dotlambda
2025-10-19 16:16:45 +00:00
committed by GitHub
2 changed files with 18 additions and 24 deletions
@@ -2,7 +2,6 @@
buildPythonPackage,
fetchFromGitHub,
lib,
pythonOlder,
poetry-core,
grpclib,
python-dateutil,
@@ -10,9 +9,10 @@
jinja2,
isort,
python,
cachelib,
pydantic,
pytest7CheckHook,
pytest-asyncio_0_21,
pytestCheckHook,
pytest-asyncio,
pytest-mock,
typing-extensions,
tomlkit,
@@ -21,16 +21,14 @@
buildPythonPackage rec {
pname = "betterproto";
version = "2.0.0b6";
version = "2.0.0b7";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "danielgtaylor";
repo = "python-betterproto";
tag = "v.${version}";
hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI=";
hash = "sha256-T7QSPH8MFa1hxJOhXc3ZMM62/FxHWjCJJ59IpeM41rI=";
};
postPatch = ''
@@ -53,11 +51,12 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
cachelib
grpcio-tools
pydantic
pytest-asyncio_0_21
pytest-asyncio
pytest-mock
pytest7CheckHook
pytestCheckHook
tomlkit
]
++ lib.flatten (builtins.attrValues optional-dependencies);
@@ -73,13 +72,11 @@ 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"
# incompatible with pytest 8:
# TypeError: exceptions must be derived from Warning, not <class 'NoneType'>
"test_message_with_deprecated_field_not_set"
"test_service_with_deprecated_method"
# Test is flaky
"test_binary_compatibility"
];
@@ -1,6 +1,5 @@
{
lib,
pythonOlder,
flit-core,
fetchPypi,
buildPythonPackage,
@@ -10,15 +9,13 @@
buildPythonPackage rec {
pname = "sigstore-protobuf-specs";
version = "0.3.2";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "sigstore_protobuf_specs";
inherit version;
hash = "sha256-yuBBtAUCYAuKYz9DwldpXQIiqU76HlEQp+x62njDnZk=";
hash = "sha256-zvnrMrLGwlHeNuIoWkCq8glIJ+rhifXngE10jMw9W4E=";
};
nativeBuildInputs = [ flit-core ];
@@ -35,10 +32,10 @@ buildPythonPackage rec {
passthru.skipBulkUpdate = true;
meta = with lib; {
meta = {
description = "Library for serializing and deserializing Sigstore messages";
homepage = "https://pypi.org/project/sigstore-protobuf-specs/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
homepage = "https://github.com/sigstore/protobuf-specs/tree/main/gen/pb-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}