Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-regex-commit, 6 hatchling, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "hatch-regex-commit"; 12 version = "0.0.3"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "frankie567"; 19 repo = "hatch-regex-commit"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-E0DIBBaDmTCsZQ41NcjcbzgJ16BwhdexlrGWBdf77oA="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' \ 27 --replace-fail ', "hatch-regex-commit"' "" \ 28 --replace-fail " --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_regex_commit --cov=tests" "" 29 ''; 30 31 build-system = [ hatchling ]; 32 33 dependencies = [ hatchling ]; 34 35 # Module has no tests 36 doCheck = false; 37 38 pythonImportsCheck = [ "hatch_regex_commit" ]; 39 40 meta = with lib; { 41 description = "Hatch plugin to create a commit and tag when bumping version"; 42 homepage = "https://github.com/frankie567/hatch-regex-commit"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}