587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
47 lines
913 B
Nix
47 lines
913 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, editorconfig
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsbeautifier";
|
|
version = "1.15.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-69cztWBwTGAtdE6vyDnbYKHukybjCiqAxK24cYrcGyQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
editorconfig
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jsbeautifier"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"jsbeautifier/tests/testindentation.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "JavaScript unobfuscator and beautifier";
|
|
mainProgram = "js-beautify";
|
|
homepage = "http://jsbeautifier.org";
|
|
changelog = "https://github.com/beautify-web/js-beautify/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ apeyroux ];
|
|
};
|
|
}
|