python3Packages.msgpack: be mindful of borgbackup via passthru.tests

Unfortunately, BorgBackup, a backupping software is very sensible to MsgPack versions
to the extent of pinning patch-level versions…

I believe it's not totally absurd if they do it as they seems to consider it dangerous to
do otherwise.

As a result, I would like to ensure that python3Packages.msgpack are gated with that piece
of software ; of course, in case of security updates, we can consider extracting the patches
if reasonable or just breaking all dependents.
This commit is contained in:
Raito Bezarius 2023-10-04 02:08:12 +02:00
parent 90b656d6db
commit 0cefea2fb3

View file

@ -4,6 +4,7 @@
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools , setuptools
, borgbackup
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -30,6 +31,12 @@ buildPythonPackage rec {
"msgpack" "msgpack"
]; ];
passthru.tests = {
# borgbackup is sensible to msgpack versions: https://github.com/borgbackup/borg/issues/3753
# please be mindful before bumping versions.
inherit borgbackup;
};
meta = with lib; { meta = with lib; {
description = "MessagePack serializer implementation"; description = "MessagePack serializer implementation";
homepage = "https://github.com/msgpack/msgpack-python"; homepage = "https://github.com/msgpack/msgpack-python";