about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible-lint
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2020-10-18 19:04:41 +0200
committerJon <jonringer@users.noreply.github.com>2020-10-19 08:29:53 -0700
commit8218431da9a6a572de989f3698488d95e565739a (patch)
treea7ea16b775a0bc786822af1b31a3e40b51d07f28 /pkgs/development/python-modules/ansible-lint
parent8781030dfa7b5d36e58a2896fd7783e884073c45 (diff)
ansible-lint: 4.2.0 -> 4.3.5
Diffstat (limited to 'pkgs/development/python-modules/ansible-lint')
-rw-r--r--pkgs/development/python-modules/ansible-lint/default.nix19
1 files 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 b704fd7453fe2..adf812fff8055 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; {