mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
d0e7995686
Diff: https://github.com/pyinvoke/invocations/compare/refs/tags/3.1.0...3.3.0 Changelog: https://github.com/pyinvoke/invocations/blob/3.3.0/docs/changelog.rst
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, blessings
|
|
, fetchFromGitHub
|
|
, invoke
|
|
, pythonOlder
|
|
, releases
|
|
, semantic-version
|
|
, tabulate
|
|
, tqdm
|
|
, twine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "invocations";
|
|
version = "3.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyinvoke";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-JnhdcxhBNsYgDMcljtGKjOT1agujlao/66QifGuh6I0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "semantic_version>=2.4,<2.7" "semantic_version"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
blessings
|
|
invoke
|
|
releases
|
|
semantic-version
|
|
tabulate
|
|
tqdm
|
|
twine
|
|
];
|
|
|
|
# There's an error loading the test suite. See https://github.com/pyinvoke/invocations/issues/29.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"invocations"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.bsd2;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|