Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / msgspec / default.nix
blob6dac69d22db8e8dcd9f742dc10b0f0e9e69615b0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , msgpack
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "msgspec";
12   version = "0.18.6";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "jcrist";
19     repo = "msgspec";
20     rev = "refs/tags/${version}";
21     hash = "sha256-xqtV60saQNINPMpOnZRSDnicedPSPBUQwPSE5zJGrTo=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   # Requires libasan to be accessible
29   doCheck = false;
31   pythonImportsCheck = [
32     "msgspec"
33   ];
35   meta = with lib; {
36     description = "Module to handle JSON/MessagePack";
37     homepage = "https://github.com/jcrist/msgspec";
38     changelog = "https://github.com/jcrist/msgspec/releases/tag/${version}";
39     license = licenses.bsd3;
40     maintainers = with maintainers; [ fab ];
41   };