13 buildPythonPackage rec {
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
21 owner = "adrienverge";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-+7Q2cPl4XElI2IfLAkteifFVTrGkj2IjZk7nPuc6eYM=";
27 nativeBuildInputs = [ setuptools ];
29 propagatedBuildInputs = [
34 nativeCheckInputs = [ pytestCheckHook ];
38 # test failure reported upstream: https://github.com/adrienverge/yamllint/issues/373
39 "test_find_files_recursively"
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [
42 # locale tests are broken on BSDs; see https://github.com/adrienverge/yamllint/issues/307
45 "test_run_with_locale"
48 pythonImportsCheck = [ "yamllint" ];
51 description = "Linter for YAML files";
52 mainProgram = "yamllint";
53 homepage = "https://github.com/adrienverge/yamllint";
54 changelog = "https://github.com/adrienverge/yamllint/blob/v${version}/CHANGELOG.rst";
55 license = licenses.gpl3Plus;
56 maintainers = with maintainers; [