Files
nixpkgs/pkgs/development/python-modules/molecule/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

76 lines
1.5 KiB
Nix

{
lib,
ansible-compat,
ansible-core,
buildPythonPackage,
click-help-colors,
enrich,
fetchPypi,
jsonschema,
molecule,
packaging,
pluggy,
rich,
setuptools,
setuptools-scm,
testers,
wcmatch,
withPlugins ? true,
molecule-plugins,
yamllint,
}:
buildPythonPackage rec {
pname = "molecule";
version = "25.12.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sia/G+Z84PowxyaqsiYGP5RD5WHX49BI9V37LuUa29Y=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
ansible-compat
ansible-core
click-help-colors
enrich
jsonschema
packaging
pluggy
rich
yamllint
wcmatch
]
++ lib.optional withPlugins molecule-plugins;
pythonImportsCheck = [ "molecule" ];
# tests can't be easily run without installing things from ansible-galaxy
doCheck = false;
passthru.tests.version =
(testers.testVersion {
package = molecule;
command = "PY_COLORS=0 ${pname} --version";
}).overrideAttrs
(old: {
# workaround the error: Permission denied: '/homeless-shelter'
HOME = "$(mktemp -d)";
});
meta = {
description = "Aids in the development and testing of Ansible roles";
homepage = "https://github.com/ansible-community/molecule";
changelog = "https://github.com/ansible/molecule/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "molecule";
};
}