Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / msgpack / default.nix
blobd44166b82f7dee231e0dc6f9c41f10cf543f82fe
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools
7 , borgbackup
8 }:
10 buildPythonPackage rec {
11   pname = "msgpack";
12   version = "1.0.5";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-wHVUQoTq3Fzdxw9HVzMdmdy8FrK71ISdFfiq5M820xw=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   nativeCheckInputs = [
27     pytestCheckHook
28   ];
30   pythonImportsCheck = [
31     "msgpack"
32   ];
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   };
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   };