From 97450273085fe430f796c63f6b6f1e64feea445a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Apr 2024 19:36:41 +0200 Subject: [PATCH] python312Packages.molecule: refactor --- .../python-modules/molecule/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/molecule/default.nix b/pkgs/development/python-modules/molecule/default.nix index 7cdcb59f95e5..bf6dc0448800 100644 --- a/pkgs/development/python-modules/molecule/default.nix +++ b/pkgs/development/python-modules/molecule/default.nix @@ -1,28 +1,30 @@ { lib -, buildPythonPackage -, fetchPypi -, testers , ansible-compat , ansible-core +, buildPythonPackage , click-help-colors , enrich +, fetchPypi , jsonschema , molecule -, withPlugins ? true, molecule-plugins , packaging , pluggy +, pythonOlder , rich , setuptools , setuptools-scm -, yamllint +, testers , wcmatch -, wheel +, withPlugins ? true, molecule-plugins +, yamllint }: buildPythonPackage rec { pname = "molecule"; version = "24.2.1"; - format = "pyproject"; + pyproject = true; + + disabled = pythonOlder "3.10"; src = fetchPypi { inherit pname version; @@ -32,7 +34,6 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools setuptools-scm - wheel ]; propagatedBuildInputs = [ @@ -63,9 +64,10 @@ buildPythonPackage rec { meta = with lib; { description = "Molecule aids in the development and testing of Ansible roles"; - mainProgram = "molecule"; homepage = "https://github.com/ansible-community/molecule"; - maintainers = with maintainers; [ dawidd6 ]; + changelog = "https://github.com/ansible/molecule/releases/tag/v${version}"; license = licenses.mit; + maintainers = with maintainers; [ dawidd6 ]; + mainProgram = "molecule"; }; }