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.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user