Skip to content

Commit c7536cd

Browse files
authoredMar 23, 2025
[Backport release-24.11] python3Packages.bump-my-version: init at 1.0.2 (#392304)
2 parents 0ab4a35 + 15d15f6 commit c7536cd

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ python3Packages }: with python3Packages; toPythonApplication bump-my-version
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
6+
# build system
7+
hatchling,
8+
hatch-vcs,
9+
10+
# dependencies
11+
click,
12+
httpx,
13+
pydantic,
14+
pydantic-settings,
15+
questionary,
16+
rich-click,
17+
rich,
18+
tomlkit,
19+
wcmatch,
20+
21+
# test
22+
gitMinimal,
23+
freezegun,
24+
pre-commit,
25+
pytest-cov,
26+
pytest-localserver,
27+
pytest-mock,
28+
pytestCheckHook,
29+
versionCheckHook,
30+
}:
31+
32+
buildPythonPackage rec {
33+
pname = "bump-my-version";
34+
version = "1.0.2";
35+
pyproject = true;
36+
37+
src = fetchFromGitHub {
38+
owner = "callowayproject";
39+
repo = "bump-my-version";
40+
tag = version;
41+
hash = "sha256-V5eFh2ne7ivtTH46QAxG0YPE0JN/W7Dt2fbf085hBVM=";
42+
};
43+
44+
build-system = [
45+
hatchling
46+
hatch-vcs
47+
];
48+
49+
# Added when backported to 24.11 as httpx is older than on master.
50+
pythonRelaxDeps = [
51+
"httpx"
52+
];
53+
54+
dependencies = [
55+
click
56+
httpx
57+
pydantic
58+
pydantic-settings
59+
questionary
60+
rich-click
61+
rich
62+
tomlkit
63+
wcmatch
64+
];
65+
66+
env = {
67+
GIT_AUTHOR_NAME = "test";
68+
GIT_COMMITTER_NAME = "test";
69+
GIT_AUTHOR_EMAIL = "test@example.com";
70+
GIT_COMMITTER_EMAIL = "test@example.com";
71+
};
72+
73+
nativeCheckInputs = [
74+
gitMinimal
75+
freezegun
76+
pre-commit
77+
pytest-cov
78+
pytest-localserver
79+
pytest-mock
80+
pytestCheckHook
81+
versionCheckHook
82+
];
83+
84+
versionCheckProgramArg = "--version";
85+
86+
__darwinAllowLocalNetworking = true;
87+
88+
pythonImportsCheck = [ "bumpversion" ];
89+
90+
meta = {
91+
description = "Small command line tool to update version";
92+
longDescription = ''
93+
This is a maintained refactor of the bump2version fork of the
94+
excellent bumpversion project. This is a small command line tool to
95+
simplify releasing software by updating all version strings in your source code
96+
by the correct increment and optionally commit and tag the changes.
97+
'';
98+
homepage = "https://github.com/callowayproject/bump-my-version";
99+
changelog = "https://github.com/callowayproject/bump-my-version/tag/${version}";
100+
license = lib.licenses.mit;
101+
maintainers = with lib.maintainers; [ daspk04 ];
102+
mainProgram = "bump-my-version";
103+
};
104+
}

‎pkgs/top-level/python-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,8 @@ self: super: with self; {
19421942

19431943
bump2version = callPackage ../development/python-modules/bump2version { };
19441944

1945+
bump-my-version = callPackage ../development/python-modules/bump-my-version { };
1946+
19451947
bumpfontversion = callPackage ../development/python-modules/bumpfontversion { };
19461948

19471949
bumps = callPackage ../development/python-modules/bumps { };

0 commit comments

Comments
 (0)
Failed to load comments.