Description: Fix hatchling version regex to accept openKylin okN revisions
 pyproject.toml gets the package version from debian/changelog with a regex
 that only accepts numeric Debian revisions ("<upstream>-<digits>").
 openKylin revisions use an "okN" suffix (0.13.0-ok1), so the pattern never
 matched and hatchling aborted with "unable to parse the version from the
 file: debian/changelog", failing the wheel build.
 Allow an optional "ok" prefix (and an optional dotted revision) in the
 revision part, so both "<upstream>-N" and "<upstream>-okN" are parsed.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed

--- python-datapoint-0.13.0.orig/pyproject.toml
+++ python-datapoint-0.13.0/pyproject.toml
@@ -40,7 +40,7 @@ exclude = [
 
 [tool.hatch.version]
 path = "debian/changelog"
-pattern = "^\\S+\\s+\\((?P<version>[^-]+)-\\d+\\)"
+pattern = "^\\S+\\s+\\((?P<version>[^-]+)-(?:ok)?\\d+(?:\\.\\d+)*\\)"
 
 [tool.isort]
 profile = "black"
