2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3, fetchPypi, git, mercurial }:
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "bumpver";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "2021.1110";
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-12-03 08:41:04 +00:00
|
|
|
inherit pname version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "b6a0ddb78db7e00ae7ffe895bf8ef97f91e6310dfc1c4721896bdfd044b1cb03";
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "if any(arg.startswith(\"bdist\") for arg in sys.argv):" ""\
|
|
|
|
--replace "import lib3to6" ""\
|
|
|
|
--replace "package_dir = lib3to6.fix(package_dir)" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pathlib2 click toml lexid colorama setuptools ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [ python3.pkgs.pytestCheckHook git mercurial ];
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
disabledTests = [
|
|
|
|
# fails due to more aggressive setuptools version specifier validation
|
|
|
|
"test_parse_default_pattern"
|
|
|
|
];
|
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Bump version numbers in project files";
|
|
|
|
homepage = "https://pypi.org/project/bumpver/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kfollesdal ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "bumpver";
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
}
|