about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-04-09 19:36:41 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-04-09 19:36:41 +0200
commit97450273085fe430f796c63f6b6f1e64feea445a (patch)
treebada23ab5272d4c4e1033c7e38a8bebb20fcc0b7
parent4afc9675a9d86152a647d4b3ff40cf3298d9c606 (diff)
python312Packages.molecule: refactor
-rw-r--r--pkgs/development/python-modules/molecule/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/molecule/default.nix b/pkgs/development/python-modules/molecule/default.nix
index 7cdcb59f95e59..bf6dc04488006 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";
   };
 }