Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
904 B
Nix
43 lines
904 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
editorconfig,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsbeautifier";
|
|
version = "1.15.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-W7GNnvuTMdglc1+8U2DujxqsXlJ4AEKAOUOqf4VPdZI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
editorconfig
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jsbeautifier" ];
|
|
|
|
enabledTestPaths = [ "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 ];
|
|
};
|
|
}
|