2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-26 11:04:55 +00:00
|
|
|
blessed,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
invoke,
|
|
|
|
pythonOlder,
|
|
|
|
releases,
|
|
|
|
semantic-version,
|
|
|
|
tabulate,
|
|
|
|
tqdm,
|
|
|
|
twine,
|
2024-09-26 11:04:55 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pytest-relaxed,
|
|
|
|
pytest-mock,
|
|
|
|
icecream,
|
|
|
|
pip,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "invocations";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "3.3.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyinvoke";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-JnhdcxhBNsYgDMcljtGKjOT1agujlao/66QifGuh6I0=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
patches = [ ./replace-blessings-with-blessed.patch ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace "semantic_version>=2.4,<2.7" "semantic_version"
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-09-26 11:04:55 +00:00
|
|
|
blessed
|
2022-04-27 09:35:20 +00:00
|
|
|
invoke
|
|
|
|
releases
|
|
|
|
semantic-version
|
|
|
|
tabulate
|
|
|
|
tqdm
|
|
|
|
twine
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-relaxed
|
|
|
|
pytest-mock
|
|
|
|
icecream
|
|
|
|
pip
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "invocations" ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
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_"
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Common/best-practice Invoke tasks and collections";
|
|
|
|
homepage = "https://invocations.readthedocs.io/";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/pyinvoke/invocations/blob/${version}/docs/changelog.rst";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|