5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
36 lines
686 B
Nix
36 lines
686 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, msgpack
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msgspec";
|
|
version = "0.9.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jcrist";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-8guKmEnDAOVzBuSvqy5V+dWY1f8FPbysMZTe9FVJPxQ=";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|