python3Packages.vcs-versioning: init at 1.1.1

This commit is contained in:
Martin Weinelt 2026-05-12 01:53:38 +02:00
commit d00eb26967
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
packaging,
setuptools,
git,
pytestCheckHook,
vcs-versioning,
}:
buildPythonPackage (finalAttrs: {
pname = "vcs-versioning";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pypa";
repo = "setuptools-scm";
tag = "vcs-versioning-v${finalAttrs.version}";
hash = "sha256-CfRzupWFtvmQLbubyr+eXRnLi4auZc2PA/Zz0aFNgaU=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version;
postPatch = ''
pushd vcs-versioning
'';
build-system = [
setuptools
];
dependencies = [
packaging
];
pythonImportsCheck = [
"vcs_versioning"
];
doCheck = false; # infinite recursion with pytest
nativeCheckInputs = [
git
pytestCheckHook
];
pytestFlags = [ "-vvv" ];
passthru.tests.pytest = vcs-versioning.overridePythonAttrs { doCheck = true; };
meta = {
changelog = "https://github.com/pypa/setuptools-scm/releases/tag/${finalAttrs.src.tag}";
description = "The blessed package to manage your versions by scm tags";
homepage = "https://github.com/pypa/setuptools-scm/tree/main/vcs-versioning";
license = lib.licenses.mit;
teams = [ lib.teams.python ];
};
})

View file

@ -21069,6 +21069,8 @@ self: super: with self; {
vcrpy = callPackage ../development/python-modules/vcrpy { };
vcs-versioning = callPackage ../development/python-modules/vcs-versioning { };
vcversioner = callPackage ../development/python-modules/vcversioner { };
vdf = callPackage ../development/python-modules/vdf { };