python312Packages.hatch-regex-commit: init at 0.0.3

Hatch plugin to create a commit and tag when bumping version

https://github.com/frankie567/hatch-regex-commit
This commit is contained in:
Fabian Affolter 2024-06-23 23:26:25 +02:00
parent 3c940494d1
commit 69c67cf44e
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-regex-commit,
hatchling,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hatch-regex-commit";
version = "0.0.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "frankie567";
repo = "hatch-regex-commit";
rev = "refs/tags/v${version}";
hash = "sha256-E0DIBBaDmTCsZQ41NcjcbzgJ16BwhdexlrGWBdf77oA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"' \
--replace-fail ', "hatch-regex-commit"' "" \
--replace-fail " --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_regex_commit --cov=tests" ""
'';
build-system = [ hatchling ];
dependencies = [ hatchling ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "hatch_regex_commit" ];
meta = with lib; {
description = "Hatch plugin to create a commit and tag when bumping version";
homepage = "https://github.com/frankie567/hatch-regex-commit";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5365,6 +5365,8 @@ self: super: with self; {
hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { }; hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { };
hatch-regex-commit = callPackage ../development/python-modules/hatch-regex-commit { };
hatch-requirements-txt = callPackage ../development/python-modules/hatch-requirements-txt { }; hatch-requirements-txt = callPackage ../development/python-modules/hatch-requirements-txt { };
haversine = callPackage ../development/python-modules/haversine { }; haversine = callPackage ../development/python-modules/haversine { };