2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-03-30 09:31:56 +00:00
|
|
|
, blessings
|
|
|
|
, fetchFromGitHub
|
|
|
|
, invoke
|
|
|
|
, releases
|
|
|
|
, semantic-version
|
|
|
|
, tabulate
|
2022-04-27 09:35:20 +00:00
|
|
|
, tqdm
|
2022-03-30 09:31:56 +00:00
|
|
|
, twine
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "invocations";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.0.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyinvoke";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-G0sl2DCROxlTnW3lWKeGw4qDmnaeRC4xYf27d6YePjE=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "semantic_version>=2.4,<2.7" "semantic_version" \
|
|
|
|
--replace "tabulate==0.7.5" "tabulate"
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessings
|
|
|
|
invoke
|
|
|
|
releases
|
|
|
|
semantic-version
|
|
|
|
tabulate
|
|
|
|
tqdm
|
|
|
|
twine
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
# There's an error loading the test suite. See https://github.com/pyinvoke/invocations/issues/29.
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"invocations"
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Common/best-practice Invoke tasks and collections";
|
|
|
|
homepage = "https://invocations.readthedocs.io/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|