1{ lib
2, buildPythonPackage
3, fetchgit
4, isPy3k
5, gflags
6}:
7
8/* There is a project called "closure-linter" on PyPI that is the
9 same as this, but it does not appear to be owned by Google.
10 So we're pulling from Google's GitHub repo instead. */
11buildPythonPackage {
12 pname = "closure-linter";
13 version = "2.3.19";
14
15 /* This project has no Python 3 support, as noted by
16 https://github.com/google/closure-linter/issues/81 */
17 disabled = isPy3k;
18
19 src = fetchgit {
20 url = "https://github.com/google/closure-linter";
21 rev = "5c27529075bb88bdc45e73008f496dec8438d658";
22 sha256 = "076c7q7pr7akfvq5y8lxr1ab81wwps07gw00igdkcxnc5k9dzxwc";
23 };
24
25 propagatedBuildInputs = [ gflags ];
26
27 meta = with lib; {
28 description = "Checks JavaScript files against Google's style guide.";
29 homepage = "https://developers.google.com/closure/utilities/";
30 license = with licenses; [ asl20 ];
31 };
32
33}