blob: 6a631e49875e28fb3d6a972312f6b4ec69e3db8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
rapidjson,
pytestCheckHook,
pytz,
setuptools,
substituteAll,
}:
buildPythonPackage rec {
version = "1.20";
pname = "python-rapidjson";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "python-rapidjson";
repo = "python-rapidjson";
rev = "refs/tags/v${version}";
hash = "sha256-xIswmHQMl5pAqvcTNqeuO3P6MynKt3ahzUgGQroaqmw=";
};
patches = [
(substituteAll {
src = ./rapidjson-include-dir.patch;
rapidjson = lib.getDev rapidjson;
})
];
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytz
];
disabledTestPaths = [ "benchmarks" ];
meta = with lib; {
changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/${src.rev}/CHANGES.rst";
homepage = "https://github.com/python-rapidjson/python-rapidjson";
description = "Python wrapper around rapidjson";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|