From e88ea96813b099bc68f22235fa0158440e085f06 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 14:48:00 +0100 Subject: [PATCH] python310Packages.ansible-doctor: 1.4.5 -> 1.4.6 --- .../python-modules/ansible-doctor/default.nix | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/ansible-doctor/default.nix b/pkgs/development/python-modules/ansible-doctor/default.nix index ba6691b6e19b..e2de0500dd93 100644 --- a/pkgs/development/python-modules/ansible-doctor/default.nix +++ b/pkgs/development/python-modules/ansible-doctor/default.nix @@ -12,12 +12,13 @@ , poetry-core , python-json-logger , pythonOlder +, pythonRelaxDepsHook , ruamel-yaml }: buildPythonPackage rec { pname = "ansible-doctor"; - version = "1.4.5"; + version = "1.4.6"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -26,11 +27,19 @@ buildPythonPackage rec { owner = "thegeeklab"; repo = "ansible-doctor"; rev = "refs/tags/v${version}"; - hash = "sha256-Bqe5dqD9VEgkkIGtpkLnCf3KTziCYb5HQdMJaskALWE="; + hash = "sha256-76IYH9IWeHU+PAtpLFGT5f8oG2roY3raW0NC3KUnFls="; }; + pythonRelaxDeps = true; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'version = "0.0.0"' 'version = "${version}"' + ''; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -50,17 +59,6 @@ buildPythonPackage rec { rm $out/lib/python*/site-packages/LICENSE ''; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'version = "0.0.0"' 'version = "${version}"' \ - --replace 'Jinja2 = "3.1.2"' 'Jinja2 = "*"' \ - --replace 'anyconfig = "0.13.0"' 'anyconfig = "*"' \ - --replace 'environs = "9.5.0"' 'environs = "*"' \ - --replace 'jsonschema = "4.15.0"' 'jsonschema = "*"' \ - --replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' \ - --replace 'python-json-logger = "2.0.4"' 'python-json-logger = "*"' - ''; - # Module has no tests doCheck = false;