Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 935 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, stdenv 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "simplejson"; 10 version = "3.17.2"; 11 doCheck = !stdenv.isDarwin; 12 13 src = fetchFromGitHub { 14 owner = pname; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-2ZC7aKyUUcth43Ce0j6JdjrJ4gb4QfJDlY2M5TLMQ+o="; 18 }; 19 20 checkInputs = [ pytestCheckHook ]; 21 22 pythonImportsCheck = [ "simplejson" ]; 23 24 meta = with lib; { 25 description = "Extensible JSON encoder/decoder for Python"; 26 longDescription = '' 27 simplejson covers the full JSON specification for both encoding 28 and decoding, with unicode support. By default, encoding is done 29 in an encoding neutral fashion (plain ASCII with \uXXXX escapes 30 for unicode characters). 31 ''; 32 homepage = "https://github.com/simplejson/simplejson"; 33 license = with licenses; [ mit afl21 ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}