From 8218431da9a6a572de989f3698488d95e565739a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 18 Oct 2020 19:04:41 +0200 Subject: [PATCH] ansible-lint: 4.2.0 -> 4.3.5 --- .../python-modules/ansible-lint/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/ansible-lint/default.nix b/pkgs/development/python-modules/ansible-lint/default.nix index b704fd7453f..adf812fff80 100644 --- a/pkgs/development/python-modules/ansible-lint/default.nix +++ b/pkgs/development/python-modules/ansible-lint/default.nix @@ -4,30 +4,31 @@ , isPy27 , ansible , pyyaml -, six -, nose , setuptools_scm , ruamel_yaml -, pathlib2 +, rich +, pytestCheckHook +, pytestcov +, pytest_xdist +, git }: buildPythonPackage rec { pname = "ansible-lint"; - version = "4.2.0"; + version = "4.3.5"; # pip is not able to import version info on raumel.yaml disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "eb925d8682d70563ccb80e2aca7b3edf84fb0b768cea3edc6846aac7abdc414a"; + sha256 = "0mjn0drw3cx4pfl9qll5j7wib5r8msihs5yl8ri9fkfcbz7k1hmy"; }; format = "pyproject"; nativeBuildInputs = [ setuptools_scm ]; - propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ] - ++ lib.optionals isPy27 [ pathlib2 ]; - checkInputs = [ nose ]; + propagatedBuildInputs = [ pyyaml ansible ruamel_yaml rich ]; + checkInputs = [ pytestCheckHook pytestcov pytest_xdist git ]; postPatch = '' patchShebangs bin/ansible-lint @@ -42,7 +43,7 @@ buildPythonPackage rec { ''; checkPhase = '' - PATH=$out/bin:$PATH nosetests test + pytest -k 'not test_run_playbook_github and not test_run_single_role_path_no_trailing_slash_script' ''; meta = with lib; {