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