1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "simplejson";
11 version = "3.20.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "simplejson";
18 repo = "simplejson";
19 tag = "v${version}";
20 hash = "sha256-wE/jqBMXVtmbc/78X4lgfvuj074CrzfLJL1CM6LCfas=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "simplejson" ];
26
27 meta = with lib; {
28 description = "Extensible JSON encoder/decoder for Python";
29 longDescription = ''
30 simplejson covers the full JSON specification for both encoding
31 and decoding, with unicode support. By default, encoding is done
32 in an encoding neutral fashion (plain ASCII with \uXXXX escapes
33 for unicode characters).
34 '';
35 homepage = "https://github.com/simplejson/simplejson";
36 changelog = "https://github.com/simplejson/simplejson/blob/v${version}/CHANGES.txt";
37 license = with licenses; [
38 mit
39 afl21
40 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}