From 8a4f3d7b9ee7e2fb27ef710617b190188042f3af Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Mar 2021 10:09:35 +0100 Subject: [PATCH] python3Packages.yamllint: enable tests --- .../python-modules/yamllint/default.nix | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/yamllint/default.nix b/pkgs/development/python-modules/yamllint/default.nix index 13545c0430d..84fbacca269 100644 --- a/pkgs/development/python-modules/yamllint/default.nix +++ b/pkgs/development/python-modules/yamllint/default.nix @@ -1,26 +1,42 @@ -{ lib, buildPythonPackage, fetchPypi -, nose, pyyaml, pathspec }: +{ lib +, buildPythonPackage +, fetchPypi +, pathspec +, pytestCheckHook +, pythonOlder +, pyyaml +}: buildPythonPackage rec { pname = "yamllint"; version = "1.25.0"; + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; sha256 = "b1549cbe5b47b6ba67bdeea31720f5c51431a4d0c076c1557952d841f7223519"; }; - checkInputs = [ nose ]; + propagatedBuildInputs = [ + pyyaml + pathspec + ]; - propagatedBuildInputs = [ pyyaml pathspec ]; + checkInputs = [ + pytestCheckHook + ]; - # Two test failures - doCheck = false; + disabledTests = [ + # Test failure could be related to https://github.com/adrienverge/yamllint/issues/334 + "test_find_files_recursively" + ]; + + pythonImportsCheck = [ "yamllint" ]; meta = with lib; { description = "A linter for YAML files"; homepage = "https://github.com/adrienverge/yamllint"; - license = licenses.gpl3; + license = licenses.gpl3Plus; maintainers = with maintainers; [ jonringer mikefaille ]; }; }