pythonPackages.jsbeautifier: fix build (#58608)

This commit is contained in:
Alexandre Peyroux 2019-04-05 21:56:45 +02:00
parent 9396b273cc
commit 946807c888
No known key found for this signature in database
GPG Key ID: A4BD77DD1421E5CF

View File

@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonApplication, EditorConfig, pytest, six }:
{ lib, fetchPypi, buildPythonApplication, EditorConfig, fetchpatch, pytest, six }:
buildPythonApplication rec {
pname = "jsbeautifier";
@ -13,6 +13,15 @@ buildPythonApplication rec {
sha256 = "7d02baa9b0459bf9c5407c1b99ad5566de04a3b664b18a58ac64f52832034204";
};
patches = [
(fetchpatch {
url = "https://github.com/beautify-web/js-beautify/commit/78e35a11cbb805fc044241d6465800ee2bd57ebc.patch";
sha256 = "1ah7nshk96yljy37i20v4fga834dix9cdbhkdc3flfm4904n4523";
})
];
patchFlags = [ "-p2" ];
meta = with lib; {
homepage = "http://jsbeautifier.org";
description = "JavaScript unobfuscator and beautifier.";