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