1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, stdenv 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "simplejson"; 10 version = "3.17.6"; 11 12 src = fetchFromGitHub { 13 owner = pname; 14 repo = pname; 15 rev = "refs/tags/v${version}"; 16 sha256 = "1irlp5sakbdfcf717qmrx0r9rjlmwk0vza6zm3y55d32zw5c1cxg"; 17 }; 18 19 checkInputs = [ 20 pytestCheckHook 21 ]; 22 23 doCheck = !stdenv.isDarwin; 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 license = with licenses; [ mit afl21 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}