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