nixpkgs/pkgs/development/python-modules/git-versioner/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
643 B
Nix

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