
Diff: https://github.com/python-rapidjson/python-rapidjson/compare/refs/tags/v1.20...refs/tags/v1.21 Changelog: https://github.com/python-rapidjson/python-rapidjson/blob/refs/tags/v1.21/CHANGES.rst
47 lines
984 B
Nix
47 lines
984 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
rapidjson,
|
|
pytestCheckHook,
|
|
pytz,
|
|
setuptools,
|
|
replaceVars,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.21";
|
|
pname = "python-rapidjson";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-rapidjson";
|
|
repo = "python-rapidjson";
|
|
tag = "v${version}";
|
|
hash = "sha256-qpq7gNdWDSNTVTqV1rnRffap0VrlHOr4soAY/SXqd1k=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./rapidjson-include-dir.patch {
|
|
rapidjson = lib.getDev rapidjson;
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
disabledTestPaths = [ "benchmarks" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/${src.tag}/CHANGES.rst";
|
|
homepage = "https://github.com/python-rapidjson/python-rapidjson";
|
|
description = "Python wrapper around rapidjson";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|