mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 09:36:32 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
cython,
|
|
borgbackup,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msgpack";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msgpack";
|
|
repo = "msgpack-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-j1MpdnfG6tCgAFlza64erMhJm/MkSK2QnixNv7MrQes=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
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;
|
|
};
|
|
|
|
preBuild = ''
|
|
make cython
|
|
'';
|
|
|
|
meta = {
|
|
description = "MessagePack serializer implementation";
|
|
homepage = "https://github.com/msgpack/msgpack-python";
|
|
changelog = "https://github.com/msgpack/msgpack-python/blob/${src.tag}/ChangeLog.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|