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