httpstat: fix version detection in setup.py (#567576)

This commit is contained in:
Grimmauld
2026-09-28 10:48:47 +00:00
committed by GitHub

View File

@@ -17,9 +17,15 @@ python3Packages.buildPythonApplication (finalAttrs: {
sha256 = "sha256-dOHFLw8suvpuZkcKEzq5HktMYBGE7+vtTD609TkAFfw=";
};
# python3.8+ changed AST parsing, so until upstream builds against newer versions this has to do
postPatch = ''
substituteInPlace setup.py --replace-fail \
"version=get_version()" \
"version='${finalAttrs.version}'"
'';
build-system = with python3Packages; [ setuptools ];
doCheck = false; # No tests
buildInputs = [ glibcLocales ];
runtimeDeps = [ curl ];