From 39b081fcd73a916f2cec5fd5c36e1fa5bf24606c Mon Sep 17 00:00:00 2001 From: Hoang Xuan Phu Date: Fri, 12 Jun 2020 10:25:24 -0400 Subject: html5validator: init at 0.3.3 --- pkgs/applications/misc/html5validator/default.nix | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/applications/misc/html5validator/default.nix (limited to 'pkgs/applications') diff --git a/pkgs/applications/misc/html5validator/default.nix b/pkgs/applications/misc/html5validator/default.nix new file mode 100644 index 00000000000..657996d1da9 --- /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 ]; + }; +} -- cgit 1.4.1