1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 gitUpdater,
6 pytestCheckHook,
7 unittestCheckHook,
8 setuptools,
9 pkg-config,
10 yajl,
11}:
12
13buildPythonPackage rec {
14 pname = "jsonslicer";
15 version = "0.1.8";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "AMDmi3";
20 repo = "jsonslicer";
21 tag = version;
22 hash = "sha256-nPifyqr+MaFqoCYFbFSSBDjvifpX0CFnHCdMCvhwYTA=";
23 };
24
25 build-system = [
26 setuptools
27 pkg-config
28 ];
29
30 buildInputs = [ yajl ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 unittestCheckHook
35 ];
36
37 pythonImportsCheck = [ "jsonslicer" ];
38
39 passthru.updateScript = gitUpdater { };
40
41 meta = with lib; {
42 description = "Stream JSON parser for Python";
43 homepage = "https://github.com/AMDmi3/jsonslicer";
44 changelog = "https://github.com/AMDmi3/jsonslicer/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ jopejoe1 ];
47 };
48}