2017-05-21 08:50:14 +01:00
|
|
|
{ stdenv, fetchurl, buildPythonApplication, EditorConfig, pytest, six }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "jsbeautifier";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "1.7.4";
|
2017-11-02 20:53:58 +00:00
|
|
|
name = "${pname}-${version}";
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2017-05-27 10:25:35 +01:00
|
|
|
propagatedBuildInputs = [ six ];
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2017-05-27 10:25:35 +01:00
|
|
|
buildInputs = [ EditorConfig pytest ];
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2017-05-27 10:25:35 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/j/jsbeautifier/${name}.tar.gz";
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "7fc14f279117a55a5e854602f6e8c1cb178c6d83f7cf75e2e9f50678fe11079e";
|
2017-05-27 10:25:35 +01:00
|
|
|
};
|
2017-05-21 08:50:14 +01:00
|
|
|
|
2017-05-27 10:25:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://jsbeautifier.org";
|
|
|
|
description = "JavaScript unobfuscator and beautifier.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ apeyroux ];
|
|
|
|
};
|
|
|
|
}
|