8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
45 lines
789 B
Nix
45 lines
789 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonApplication
|
|
, editorconfig
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "jsbeautifier";
|
|
version = "1.14.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZfT3dLDkywIutJmbRc1ndi92Qnxe80CCq6VLwdjvI+s=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
editorconfig
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jsbeautifier"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"jsbeautifier/tests/testindentation.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "JavaScript unobfuscator and beautifier";
|
|
homepage = "http://jsbeautifier.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ apeyroux ];
|
|
};
|
|
}
|