1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 wheel,
9}:
10
11buildPythonPackage rec {
12 pname = "pyjson5";
13 version = "1.6.9";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "Kijewski";
20 repo = "pyjson5";
21 tag = "v${version}";
22 hash = "sha256-3uxuJvxTn6C3MWShXQlILPApgtumgGOeaaMlBvRaHiU=";
23 fetchSubmodules = true;
24 };
25
26 build-system = [
27 cython
28 setuptools
29 wheel
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "pyjson5" ];
36
37 meta = with lib; {
38 description = "JSON5 serializer and parser library";
39 homepage = "https://github.com/Kijewski/pyjson5";
40 changelog = "https://github.com/Kijewski/pyjson5/blob/${src.tag}/CHANGELOG.md";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ fab ];
43 };
44}