mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
0cefea2fb3
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.
48 lines
1002 B
Nix
48 lines
1002 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, borgbackup
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msgpack";
|
|
version = "1.0.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wHVUQoTq3Fzdxw9HVzMdmdy8FrK71ISdFfiq5M820xw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"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; {
|
|
description = "MessagePack serializer implementation";
|
|
homepage = "https://github.com/msgpack/msgpack-python";
|
|
changelog = "https://github.com/msgpack/msgpack-python/blob/v${version}/ChangeLog.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|