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