2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, openjdk
|
|
|
|
, python3
|
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "html5validator";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.2";
|
|
|
|
format = "setuptools";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenkreiss";
|
|
|
|
repo = "html5validator";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-yvclqE4+2R9q/UJU9W95U1/xVJeNj+5eKvT6VQel9k8=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
openjdk
|
|
|
|
] ++ (with python3.pkgs; [
|
|
|
|
pyyaml
|
|
|
|
]);
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
hacking
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH="$PATH:$out/bin";
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line tool that tests files for HTML5 validity";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "html5validator";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/svenkreiss/html5validator";
|
|
|
|
changelog = "https://github.com/svenkreiss/html5validator/releases/tag/v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ phunehehe ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|