1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8 borgbackup, 9}: 10 11buildPythonPackage rec { 12 pname = "msgpack"; 13 version = "1.0.8"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-lcArDifnBuSNDlQm0XEMp44PBijW6J1bWluRpfEidPM="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "msgpack" ]; 28 29 passthru.tests = { 30 # borgbackup is sensible to msgpack versions: https://github.com/borgbackup/borg/issues/3753 31 # please be mindful before bumping versions. 32 inherit borgbackup; 33 }; 34 35 meta = with lib; { 36 description = "MessagePack serializer implementation"; 37 homepage = "https://github.com/msgpack/msgpack-python"; 38 changelog = "https://github.com/msgpack/msgpack-python/blob/v${version}/ChangeLog.rst"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ nickcao ]; 41 }; 42}