depot/third_party/nixpkgs/pkgs/development/python-modules/msgspec/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

36 lines
686 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, msgpack
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "msgspec";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jcrist";
repo = pname;
rev = version;
hash = "sha256-q7WNVnkvK7MTleHEuClOFJ0Wv6EWu/3ztMi6TYdKgKU=";
};
# Requires libasan to be accessible
doCheck = false;
pythonImportsCheck = [
"msgspec"
];
meta = with lib; {
description = "Module to handle JSON/MessagePack";
homepage = "https://github.com/jcrist/msgspec";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}