Files
nixpkgs/pkgs/development/python-modules/invocations/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

77 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
blessed,
fetchFromGitHub,
invoke,
releases,
semantic-version,
tabulate,
tqdm,
twine,
pytestCheckHook,
pytest-relaxed,
pytest-mock,
icecream,
pip,
}:
buildPythonPackage rec {
pname = "invocations";
version = "3.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pyinvoke";
repo = "invocations";
tag = version;
hash = "sha256-JnhdcxhBNsYgDMcljtGKjOT1agujlao/66QifGuh6I0=";
};
patches = [ ./replace-blessings-with-blessed.patch ];
postPatch = ''
substituteInPlace setup.py \
--replace "semantic_version>=2.4,<2.7" "semantic_version"
'';
propagatedBuildInputs = [
blessed
invoke
releases
semantic-version
tabulate
tqdm
twine
];
nativeCheckInputs = [
pytestCheckHook
pytest-relaxed
pytest-mock
icecream
pip
];
pythonImportsCheck = [ "invocations" ];
disabledTests = [
# invoke.exceptions.UnexpectedExit
"autodoc_"
# ValueError: Call either Version('1.2.3') or Version(major=1, ...)
"component_state_enums_contain_human_readable_values"
"load_version_"
"prepare_"
"status_"
];
meta = {
description = "Common/best-practice Invoke tasks and collections";
homepage = "https://invocations.readthedocs.io/";
changelog = "https://github.com/pyinvoke/invocations/blob/${version}/docs/changelog.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ samuela ];
};
}