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