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