5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
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 ];
|
|
};
|
|
}
|