1{ 2 lib, 3 buildPythonPackage, 4 setuptools-scm, 5 fetchFromGitLab, 6}: 7 8buildPythonPackage rec { 9 pname = "git-versioner"; 10 version = "7.1"; 11 pyproject = true; 12 13 src = fetchFromGitLab { 14 owner = "alelec"; 15 repo = "__version__"; 16 rev = "v${version}"; 17 hash = "sha256-bnpuFJSd4nBXJA75V61kiB+nU5pUzdEAIScfKx7aaGU="; 18 }; 19 20 nativeBuildInputs = [ setuptools-scm ]; 21 22 pythonImportsCheck = [ "__version__" ]; 23 24 meta = with lib; { 25 description = "Manage current / next version for project"; 26 homepage = "https://gitlab.com/alelec/__version__"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ slotThe ]; 29 }; 30}