1{ lib 2, buildPythonPackage 3, fetchPypi 4}: 5 6buildPythonPackage rec { 7 pname = "mujson"; 8 version = "1.4"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "sha256-J9nPGxDkLQje6AkL9cewNqmQ7Z+00TXBEr3p71E2cnE="; 13 }; 14 15 # LICENSE file missing from src 16 # https://github.com/mattgiles/mujson/issues/8 17 postPatch = '' 18 substituteInPlace setup.cfg \ 19 --replace "license_file = LICENSE" "" 20 ''; 21 22 # No tests 23 doCheck = false; 24 pythonImportsCheck = [ "mujson" ]; 25 26 meta = with lib; { 27 description = "Use the fastest JSON functions available at import time"; 28 homepage = "https://github.com/mattgiles/mujson"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ artturin ]; 31 }; 32}