Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
git,
|
|
mercurial,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "bumpver";
|
|
version = "2021.1110";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b6a0ddb78db7e00ae7ffe895bf8ef97f91e6310dfc1c4721896bdfd044b1cb03";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "if any(arg.startswith(\"bdist\") for arg in sys.argv):" ""\
|
|
--replace-fail "import lib3to6" ""\
|
|
--replace-fail "package_dir = lib3to6.fix(package_dir)" ""
|
|
'';
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
pathlib2
|
|
click
|
|
toml
|
|
lexid
|
|
colorama
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3.pkgs.pytestCheckHook
|
|
git
|
|
mercurial
|
|
];
|
|
|
|
disabledTests = [
|
|
# fails due to more aggressive setuptools version specifier validation
|
|
"test_parse_default_pattern"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Bump version numbers in project files";
|
|
homepage = "https://pypi.org/project/bumpver/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
mainProgram = "bumpver";
|
|
};
|
|
}
|