mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
python3Packages.bump-my-version: init at 1.0.2
This commit is contained in:
parent
298793e609
commit
f7878586fe
3 changed files with 102 additions and 0 deletions
1
pkgs/by-name/bu/bump-my-version/package.nix
Normal file
1
pkgs/by-name/bu/bump-my-version/package.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{ python3Packages }: with python3Packages; toPythonApplication bump-my-version
|
99
pkgs/development/python-modules/bump-my-version/default.nix
Normal file
99
pkgs/development/python-modules/bump-my-version/default.nix
Normal file
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build system
|
||||
hatchling,
|
||||
hatch-vcs,
|
||||
|
||||
# dependencies
|
||||
click,
|
||||
httpx,
|
||||
pydantic,
|
||||
pydantic-settings,
|
||||
questionary,
|
||||
rich-click,
|
||||
rich,
|
||||
tomlkit,
|
||||
wcmatch,
|
||||
|
||||
# test
|
||||
gitMinimal,
|
||||
freezegun,
|
||||
pre-commit,
|
||||
pytest-cov,
|
||||
pytest-localserver,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bump-my-version";
|
||||
version = "1.0.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "callowayproject";
|
||||
repo = "bump-my-version";
|
||||
tag = version;
|
||||
hash = "sha256-V5eFh2ne7ivtTH46QAxG0YPE0JN/W7Dt2fbf085hBVM=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
hatch-vcs
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
click
|
||||
httpx
|
||||
pydantic
|
||||
pydantic-settings
|
||||
questionary
|
||||
rich-click
|
||||
rich
|
||||
tomlkit
|
||||
wcmatch
|
||||
];
|
||||
|
||||
env = {
|
||||
GIT_AUTHOR_NAME = "test";
|
||||
GIT_COMMITTER_NAME = "test";
|
||||
GIT_AUTHOR_EMAIL = "test@example.com";
|
||||
GIT_COMMITTER_EMAIL = "test@example.com";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
gitMinimal
|
||||
freezegun
|
||||
pre-commit
|
||||
pytest-cov
|
||||
pytest-localserver
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
versionCheckHook
|
||||
];
|
||||
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
pythonImportsCheck = [ "bumpversion" ];
|
||||
|
||||
meta = {
|
||||
description = "Small command line tool to update version";
|
||||
longDescription = ''
|
||||
This is a maintained refactor of the bump2version fork of the
|
||||
excellent bumpversion project. This is a small command line tool to
|
||||
simplify releasing software by updating all version strings in your source code
|
||||
by the correct increment and optionally commit and tag the changes.
|
||||
'';
|
||||
homepage = "https://github.com/callowayproject/bump-my-version";
|
||||
changelog = "https://github.com/callowayproject/bump-my-version/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ daspk04 ];
|
||||
mainProgram = "bump-my-version";
|
||||
};
|
||||
}
|
|
@ -2010,6 +2010,8 @@ self: super: with self; {
|
|||
|
||||
bump2version = callPackage ../development/python-modules/bump2version { };
|
||||
|
||||
bump-my-version = callPackage ../development/python-modules/bump-my-version { };
|
||||
|
||||
bumpfontversion = callPackage ../development/python-modules/bumpfontversion { };
|
||||
|
||||
bumps = callPackage ../development/python-modules/bumps { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue