about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/molecule/plugins.nix
blob: af36fe3bb60c0907f70547208d3826266c9cdab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, setuptools-scm
, python-vagrant
, docker
}:

buildPythonPackage rec {
  pname = "molecule-plugins";
  version = "23.5.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8T6gR7hlDIkmBLgbdjgryAu0riXqULI/MOgf2dWAKv8=";
  };

  # 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;
  };
}