1{ lib 2, buildPythonPackage 3, fetchPypi 4, pathspec 5, pytestCheckHook 6, pythonOlder 7, pyyaml 8, stdenv 9}: 10 11buildPythonPackage rec { 12 pname = "yamllint"; 13 version = "1.28.0"; 14 disabled = pythonOlder "3.5"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-nj2N3RbQWDIUxf3/6AbJNECGch8QdDX2i62ZDlqIgms="; 19 }; 20 21 propagatedBuildInputs = [ 22 pyyaml 23 pathspec 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 disabledTests = [ 31 # test failure reported upstream: https://github.com/adrienverge/yamllint/issues/373 32 "test_find_files_recursively" 33 ] ++ lib.optionals stdenv.isDarwin [ 34 # locale tests are broken on BSDs; see https://github.com/adrienverge/yamllint/issues/307 35 "test_locale_accents" 36 "test_locale_case" 37 "test_run_with_locale" 38 ]; 39 40 pythonImportsCheck = [ "yamllint" ]; 41 42 meta = with lib; { 43 description = "A linter for YAML files"; 44 homepage = "https://github.com/adrienverge/yamllint"; 45 license = licenses.gpl3Plus; 46 maintainers = with maintainers; [ jonringer mikefaille ]; 47 }; 48}