Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, build, blessed, fetchFromGitHub, invoke, releases, semantic-version, tabulate, tqdm, twine, pytestCheckHook, pytest-relaxed, pytest-mock, icecream, setuptools, pip,}:
buildPythonPackage rec { pname = "invocations"; version = "4.0.2"; pyproject = true;
src = fetchFromGitHub { owner = "pyinvoke"; repo = "invocations"; tag = version; hash = "sha256-G6EKypqP2/coPChLwwEKZ2WIEay0qfyM8M5jKb0oS2c="; };
patches = [ ./replace-blessings-with-blessed.patch ];
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "semantic_version>=2.4,<2.7" "semantic_version" '';
build-system = [ setuptools ];
dependencies = [ build 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/${src.tag}/docs/changelog.rst"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ samuela ]; };}