2019-04-05 20:56:45 +01:00
|
|
|
{ lib, fetchPypi, buildPythonApplication, EditorConfig, fetchpatch, pytest, six }:
|
2017-05-21 08:50:14 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "jsbeautifier";
|
2019-04-05 21:02:01 +01:00
|
|
|
version = "1.9.1";
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2019-04-05 21:02:01 +01:00
|
|
|
propagatedBuildInputs = [ six EditorConfig ];
|
|
|
|
checkInputs = [ pytest ];
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-05 21:02:01 +01:00
|
|
|
sha256 = "0q8ld072dkccssagjxyvc9633fb6ynflvz70924phgp3zxmim960";
|
2017-05-27 10:25:35 +01:00
|
|
|
};
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2019-04-05 20:56:45 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/beautify-web/js-beautify/commit/78e35a11cbb805fc044241d6465800ee2bd57ebc.patch";
|
|
|
|
sha256 = "1ah7nshk96yljy37i20v4fga834dix9cdbhkdc3flfm4904n4523";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p2" ];
|
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
meta = with lib; {
|
2017-05-27 10:25:35 +01:00
|
|
|
homepage = "http://jsbeautifier.org";
|
|
|
|
description = "JavaScript unobfuscator and beautifier.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ apeyroux ];
|
|
|
|
};
|
|
|
|
}
|