aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix
index b704fd7453fe..2718ba7670b5 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/ansible-lint/default.nix
+++ b/infra/libkookie/nixpkgs/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.7";
# pip is not able to import version info on raumel.yaml
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "eb925d8682d70563ccb80e2aca7b3edf84fb0b768cea3edc6846aac7abdc414a";
+ sha256 = "0kwwv9dv9rgsqvp15r2vma7hii9lkkqn0n2irvp5h32cbhzzq4hh";
};
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,11 +43,11 @@ 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; {
- homepage = "https://github.com/willthames/ansible-lint";
+ homepage = "https://github.com/ansible/ansible-lint";
description = "Best practices checker for Ansible";
license = licenses.mit;
maintainers = [ maintainers.sengaya ];