mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
httpstat: fix version detection in setup.py (#567576)
This commit is contained in:
@@ -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 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user