From fecdebefb7288fc3db0696c7110cf84a10b02ed2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 21 Jan 2026 18:38:17 +0100 Subject: [PATCH] python3Packages.setuptools-git-versioning: 2.1.0 -> 3.0.1 https://github.com/dolfinus/setuptools-git-versioning/blob/v3.0.1/CHANGELOG.rst This commit was automatically generated using update-python-libraries. --- .../setuptools-git-versioning/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/setuptools-git-versioning/default.nix b/pkgs/development/python-modules/setuptools-git-versioning/default.nix index 37708bda7d3d..6fca2190c92d 100644 --- a/pkgs/development/python-modules/setuptools-git-versioning/default.nix +++ b/pkgs/development/python-modules/setuptools-git-versioning/default.nix @@ -10,32 +10,33 @@ pytest-rerunfailures, pythonOlder, setuptools, - toml, tomli, + tomli-w, }: buildPythonPackage rec { pname = "setuptools-git-versioning"; - version = "2.1.0"; + version = "3.0.1"; pyproject = true; src = fetchFromGitHub { owner = "dolfinus"; repo = "setuptools-git-versioning"; tag = "v${version}"; - hash = "sha256-Slf6tq83LajdTnr98SuCiFIdm/6auzftnARLAOBgyng="; + hash = "sha256-rAJ9OvSKhQ3sMN5DlUg2tfR42Ae7jjz9en3gfRnXb3I="; }; postPatch = '' - # Because the .git dir is missing, it falls back to using version 0.0.1 - # Instead we use the version specified in the derivation - substituteInPlace setup.py --replace-fail \ - 'version=version_from_git(root=here, dev_template="{tag}.post{ccount}")' \ - "version='${version}'" + substituteInPlace pyproject.toml \ + --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; build-system = [ + packaging setuptools + ] + ++ lib.optionals (pythonOlder "3.11") [ + tomli ]; dependencies = [ @@ -52,7 +53,7 @@ buildPythonPackage rec { git pytestCheckHook pytest-rerunfailures - toml + tomli-w ]; preCheck = '' @@ -74,7 +75,7 @@ buildPythonPackage rec { description = "Use git repo data (latest tag, current commit hash, etc) for building a version number according PEP-440"; mainProgram = "setuptools-git-versioning"; homepage = "https://github.com/dolfinus/setuptools-git-versioning"; - changelog = "https://github.com/dolfinus/setuptools-git-versioning/blob/${src.rev}/CHANGELOG.rst"; + changelog = "https://github.com/dolfinus/setuptools-git-versioning/blob/${src.tag}/CHANGELOG.rst"; license = lib.licenses.mit; }; }