diff --git a/pkgs/by-name/ha/hap-py/package.nix b/pkgs/by-name/ha/hap-py/package.nix index cba65d18d0ef..01bbb72a7572 100644 --- a/pkgs/by-name/ha/hap-py/package.nix +++ b/pkgs/by-name/ha/hap-py/package.nix @@ -67,6 +67,11 @@ stdenv.mkDerivation (finalAttrs: { # Insert missing include for uint64_t sed -i '/#include /a #include ' src/c++/include/helpers/Roc.hh + + # pipes module was removed in Python 3.13; shlex.quote is the replacement + find src/python -name "*.py" -exec sed -i \ + -e 's/import pipes/import shlex/' \ + -e 's/pipes\.quote/shlex.quote/g' {} \; ''; patches = [