My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/jsbeautifier/default.nix

45 lines
789 B

{ lib
, fetchPypi
, buildPythonApplication
, editorconfig
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonApplication rec {
pname = "jsbeautifier";
version = "1.14.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-1tV2J8+ezYzZAbnsetSogSeo3t6RAXf6SyGedtAvm9c=";
};
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 ];
};
}