1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 msgpack,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "msgspec";
13 version = "0.18.6";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jcrist";
20 repo = "msgspec";
21 rev = "refs/tags/${version}";
22 hash = "sha256-xqtV60saQNINPMpOnZRSDnicedPSPBUQwPSE5zJGrTo=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 # Requires libasan to be accessible
28 doCheck = false;
29
30 pythonImportsCheck = [ "msgspec" ];
31
32 meta = with lib; {
33 description = "Module to handle JSON/MessagePack";
34 homepage = "https://github.com/jcrist/msgspec";
35 changelog = "https://github.com/jcrist/msgspec/releases/tag/${version}";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ fab ];
38 };
39}