about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/molecule/plugins.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/molecule/plugins.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/molecule/plugins.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/molecule/plugins.nix b/nixpkgs/pkgs/development/python-modules/molecule/plugins.nix
new file mode 100644
index 000000000000..9cb8a635c31e
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/molecule/plugins.nix
@@ -0,0 +1,50 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonRelaxDepsHook
+, setuptools-scm
+, python-vagrant
+, docker
+}:
+
+buildPythonPackage rec {
+  pname = "molecule-plugins";
+  version = "23.4.1";
+  format = "pyproject";
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-NMR+4sEcNbowyoTqaEwe4Wac9+WNIZesnb/L9C0KG3s=";
+  };
+
+  # reverse the dependency
+  pythonRemoveDeps = [
+    "molecule"
+  ];
+
+  nativeBuildInputs = [
+    pythonRelaxDepsHook
+    setuptools-scm
+  ];
+
+  passthru.optional-dependencies = {
+    docker = [
+      docker
+    ];
+    vagrant = [
+      python-vagrant
+    ];
+  };
+
+  pythonImportsCheck = [ "molecule_plugins" ];
+
+  # Tests require container runtimes
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Collection on molecule plugins";
+    homepage = "https://github.com/ansible-community/molecule-plugins";
+    maintainers = with maintainers; [ dawidd6 ];
+    license = licenses.mit;
+  };
+}