2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools-scm,
|
|
|
|
fetchFromGitLab,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "git-versioner";
|
|
|
|
version = "7.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "alelec";
|
|
|
|
repo = "__version__";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-bnpuFJSd4nBXJA75V61kiB+nU5pUzdEAIScfKx7aaGU=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "__version__" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage current / next version for project";
|
|
|
|
homepage = "https://gitlab.com/alelec/__version__";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ slotThe ];
|
|
|
|
};
|
|
|
|
}
|