python3Packages.ansible-later: init at 2.0.6
This commit is contained in:
parent
e26ee0aa91
commit
272b9436ba
2 changed files with 73 additions and 0 deletions
71
pkgs/development/python-modules/ansible-later/default.nix
Normal file
71
pkgs/development/python-modules/ansible-later/default.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{ buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
|
||||
# pythonPackages
|
||||
, anyconfig
|
||||
, appdirs
|
||||
, colorama
|
||||
, flake8
|
||||
, jsonschema
|
||||
, nested-lookup
|
||||
, poetry-core
|
||||
, python-json-logger
|
||||
, pyyaml
|
||||
, toolz
|
||||
, unidiff
|
||||
, yamllint
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-later";
|
||||
version = "2.0.6";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thegeeklab";
|
||||
repo = "ansible-later";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-vg9ryzl9ZeOGuFLL1yeJ3vGNPdo3ONmCQozY6DK6miY=";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
rm $out/lib/python*/site-packages/LICENSE
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'PyYAML = "6.0"' 'PyYAML = "*"' \
|
||||
--replace 'unidiff = "0.7.3"' 'unidiff = "*"' \
|
||||
--replace 'jsonschema = "4.4.0"' 'jsonschema = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
anyconfig
|
||||
appdirs
|
||||
colorama
|
||||
flake8
|
||||
jsonschema
|
||||
nested-lookup
|
||||
python-json-logger
|
||||
pyyaml
|
||||
toolz
|
||||
unidiff
|
||||
yamllint
|
||||
];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "ansiblelater" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Another best practice scanner for Ansible roles and playbooks";
|
||||
homepage = "https://github.com/thegeeklab/ansible-later";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ tboerger ];
|
||||
};
|
||||
}
|
|
@ -522,6 +522,8 @@ in {
|
|||
|
||||
ansible-kernel = callPackage ../development/python-modules/ansible-kernel { };
|
||||
|
||||
ansible-later = callPackage ../development/python-modules/ansible-later { };
|
||||
|
||||
ansible-lint = callPackage ../development/python-modules/ansible-lint { };
|
||||
|
||||
ansible-runner = callPackage ../development/python-modules/ansible-runner { };
|
||||
|
|
Loading…
Reference in a new issue