@@ -1,26 +1,42 @@
1−{ lib, buildPythonPackage, fetchPypi
2−, nose, pyyaml, pathspec }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pathspec
5+, pytestCheckHook
6+, pythonOlder
7+, pyyaml
8+}:
39
410buildPythonPackage rec {
511 pname = "yamllint";
612 version = "1.25.0";
13+ disabled = pythonOlder "3.5";
714
815 src = fetchPypi {
916 inherit pname version;
1017 sha256 = "b1549cbe5b47b6ba67bdeea31720f5c51431a4d0c076c1557952d841f7223519";
1118 };
1219
13− checkInputs = [ nose ];
20+ propagatedBuildInputs = [
21+ pyyaml
22+ pathspec
23+ ];
1424
15− propagatedBuildInputs = [ pyyaml pathspec ];
25+ checkInputs = [
26+ pytestCheckHook
27+ ];
1628
17− # Two test failures
18− doCheck = false;
29+ disabledTests = [
30+ # Test failure could be related to https://github.com/adrienverge/yamllint/issues/334
31+ "test_find_files_recursively"
32+ ];
33+
34+ pythonImportsCheck = [ "yamllint" ];
1935
2036 meta = with lib; {
2137 description = "A linter for YAML files";
2238 homepage = "https://github.com/adrienverge/yamllint";
23− license = licenses.gpl3;
39+ license = licenses.gpl3Plus;
2440 maintainers = with maintainers; [ jonringer mikefaille ];
2541 };
2642}