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.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-d5kyVNsf9vhOtuHXXjtrcsui7yCBOlhbLYHo5ePHE8Y=";
20 };
21
22 propagatedBuildInputs = [
23 editorconfig
24 six
25 ];
26
27 checkInputs = [
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 license = licenses.mit;
43 maintainers = with maintainers; [ apeyroux ];
44 };
45}