diff options
author | Hoang Xuan Phu <phuhimself@phunehehe.net> | 2020-06-12 10:25:24 -0400 |
---|---|---|
committer | Hoang Xuan Phu <phuhimself@phunehehe.net> | 2020-06-14 08:59:13 -0400 |
commit | 39b081fcd73a916f2cec5fd5c36e1fa5bf24606c (patch) | |
tree | 12c227e6971c22a921f303ef7a36416c359224f5 /pkgs/applications/misc/html5validator | |
parent | 8ff73e4f2f0b5a4659715d7bfb953b431506dedd (diff) |
html5validator: init at 0.3.3
Diffstat (limited to 'pkgs/applications/misc/html5validator')
-rw-r--r-- | pkgs/applications/misc/html5validator/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/misc/html5validator/default.nix b/pkgs/applications/misc/html5validator/default.nix new file mode 100644 index 0000000000000..657996d1da9f5 --- /dev/null +++ b/pkgs/applications/misc/html5validator/default.nix @@ -0,0 +1,25 @@ +{ buildPythonApplication, fetchFromGitHub, nose, openjdk, lib }: + +buildPythonApplication rec { + pname = "html5validator"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "svenkreiss"; + repo = "html5validator"; + rev = "v${version}"; + sha256 = "130acqi0dsy3midg7hwslykzry6crr4ln6ia0f0avyywkz4bplsv"; + }; + + propagatedBuildInputs = [ openjdk ]; + + checkInputs = [ nose ]; + checkPhase = "PATH=$PATH:$out/bin nosetests"; + + meta = with lib; { + homepage = "https://github.com/svenkreiss/html5validator"; + description = "Command line tool that tests files for HTML5 validity"; + license = licenses.mit; + maintainers = [ maintainers.phunehehe ]; + }; +} |