Merge pull request #166046 from r-ryantm/auto-update/python3.10-ansible-later
python310Packages.ansible-later: 2.0.6 -> 2.0.8
This commit is contained in:
commit
5aa4049889
|
@ -1,16 +1,18 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
, fetchFromGitHub
|
|
||||||
, lib
|
|
||||||
|
|
||||||
# pythonPackages
|
|
||||||
, anyconfig
|
, anyconfig
|
||||||
, appdirs
|
, appdirs
|
||||||
|
, buildPythonPackage
|
||||||
, colorama
|
, colorama
|
||||||
|
, fetchFromGitHub
|
||||||
, flake8
|
, flake8
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, nested-lookup
|
, nested-lookup
|
||||||
|
, pathspec
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pytest-mock
|
||||||
, python-json-logger
|
, python-json-logger
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, toolz
|
, toolz
|
||||||
, unidiff
|
, unidiff
|
||||||
|
@ -22,24 +24,15 @@ buildPythonPackage rec {
|
||||||
version = "2.0.6";
|
version = "2.0.6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "thegeeklab";
|
owner = "thegeeklab";
|
||||||
repo = "ansible-later";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-vg9ryzl9ZeOGuFLL1yeJ3vGNPdo3ONmCQozY6DK6miY=";
|
hash = "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 = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
@ -51,6 +44,7 @@ buildPythonPackage rec {
|
||||||
flake8
|
flake8
|
||||||
jsonschema
|
jsonschema
|
||||||
nested-lookup
|
nested-lookup
|
||||||
|
pathspec
|
||||||
python-json-logger
|
python-json-logger
|
||||||
pyyaml
|
pyyaml
|
||||||
toolz
|
toolz
|
||||||
|
@ -58,12 +52,30 @@ buildPythonPackage rec {
|
||||||
yamllint
|
yamllint
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests
|
checkInputs = [
|
||||||
doCheck = false;
|
pytest-mock
|
||||||
pythonImportsCheck = [ "ansiblelater" ];
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'version = "0.0.0"' 'version = "${version}"' \
|
||||||
|
--replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \
|
||||||
|
--replace 'PyYAML = "6.0"' 'PyYAML = "*"' \
|
||||||
|
--replace 'unidiff = "0.7.3"' 'unidiff = "*"' \
|
||||||
|
--replace 'jsonschema = "4.4.0"' 'jsonschema = "*"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
rm $out/lib/python*/site-packages/LICENSE
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ansiblelater"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Another best practice scanner for Ansible roles and playbooks";
|
description = "Best practice scanner for Ansible roles and playbooks";
|
||||||
homepage = "https://github.com/thegeeklab/ansible-later";
|
homepage = "https://github.com/thegeeklab/ansible-later";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ tboerger ];
|
maintainers = with maintainers; [ tboerger ];
|
||||||
|
|
Loading…
Reference in a new issue