pyhanko-cli: use pyprojectVersionPatchHook
This commit is contained in:
@@ -23,10 +23,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
substituteInPlace src/pyhanko/cli/version.py \
|
||||
--replace-fail "0.0.0.dev1" "${finalAttrs.version}" \
|
||||
--replace-fail "(0, 0, 0, 'dev1')" "tuple(\"${finalAttrs.version}\".split(\".\"))"
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "0.0.0.dev1" "${finalAttrs.version}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3Packages.pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
|
||||
dependencies =
|
||||
|
||||
Reference in New Issue
Block a user