{ lib, buildPythonPackage, fetchFromGitHub, # build-system poetry-core, # dependencies packaging, # tests addBinToPathHook, gitMinimal, pytestCheckHook, writableTmpDirAsHomeHook, }: buildPythonPackage (finalAttrs: { pname = "dunamai"; version = "1.26.3"; pyproject = true; src = fetchFromGitHub { owner = "mtkennerly"; repo = "dunamai"; tag = "v${finalAttrs.version}"; hash = "sha256-8R9ASAkn7cBWC1ZI4/k9b9rISpAEgyL9NJQDvQnbj+o="; }; build-system = [ poetry-core ]; dependencies = [ packaging ]; preCheck = '' git config --global user.email "nobody@example.com" git config --global user.name "Nobody" ''; nativeCheckInputs = [ addBinToPathHook gitMinimal pytestCheckHook writableTmpDirAsHomeHook ]; disabledTests = [ # clones from github.com "test__version__from_git__shallow" ]; pythonImportsCheck = [ "dunamai" ]; meta = { description = "Dynamic version generation"; mainProgram = "dunamai"; homepage = "https://github.com/mtkennerly/dunamai"; changelog = "https://github.com/mtkennerly/dunamai/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jmgilman ]; }; })