1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, msgpack
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "msgspec";
11 version = "0.18.4";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "jcrist";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-u1mrj/pHvlbSwh6QtRdJKuVGN1zQ6mRITi/qzrCHnhk=";
21 };
22
23 # Requires libasan to be accessible
24 doCheck = false;
25
26 pythonImportsCheck = [
27 "msgspec"
28 ];
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}