1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 editorconfig, 6 pytestCheckHook, 7 pythonOlder, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "jsbeautifier"; 13 version = "1.15.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-W7GNnvuTMdglc1+8U2DujxqsXlJ4AEKAOUOqf4VPdZI="; 21 }; 22 23 propagatedBuildInputs = [ 24 editorconfig 25 six 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "jsbeautifier" ]; 31 32 enabledTestPaths = [ "jsbeautifier/tests/testindentation.py" ]; 33 34 meta = with lib; { 35 description = "JavaScript unobfuscator and beautifier"; 36 mainProgram = "js-beautify"; 37 homepage = "http://jsbeautifier.org"; 38 changelog = "https://github.com/beautify-web/js-beautify/blob/v${version}/CHANGELOG.md"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ apeyroux ]; 41 }; 42}