Change:
The recent nixos-unstable update () breaks octoprint. Last known good commit is . Steps to reproduce the behavior: result: This is probably because the derivation of octoprint has an override for . Werkzeug changed its API in version 2, which lead to a similar . When v1.0.1 , it fails with the old Werkzeug version due to an incorrect redirect. This is also why builds without issues, but fails to build, when its needed for octoprint. I'm not a 100% sure its the werkzeug override. Octoprint has a lot of Python overrides.. build sucessfully. Please run and paste the result.
Feel free to open a PR overriding the pytest-httpbin version for octoprint.
it seems it wasn't just (at least not in aarch64). Anyway, I submitted a PR which should fix the build issues introduced by recent Python upgrades.

Discussion:
, substituteAll , nix-update-script # To include additional plugins, pass them here as an overlay. <del> , packageOverrides ? self: super: {} </del> <ins> , packageOverrides ? self: super: { } </ins> }: let mkOverride = attrname: version: sha256: <del> self: super: { ${attrname} = super.${attrname}.overridePythonAttrs ( oldAttrs: { inherit version; src = oldAttrs.src.override { inherit version sha256; }; } ); }; </del> <ins> self: super: { ${attrname} = super.${attrname}.overridePythonAttrs ( oldAttrs: { inherit version; src = oldAttrs.src.override { inherit version sha256; }; } ); }; </ins> py = python3.override { self = py; <del> packageOverrides = lib.foldr lib.composeExtensions (self: super: {}) ( </del> <ins> packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ( </ins> [ # the following dependencies are non trivial to update since later versions introduce backwards incompatible # changes that might affect plugins, or due to other observed problems

inherit version; sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"; }; <del> doCheck= false; </del> <ins> doCheck = false; </ins> }); } )

pysocks ]; disabledTests = [ <del> "testConnect"  # requires network access </del> <ins> "testConnect" # requires network access </ins> ]; } );

disabledTests = [ "test_apply_simulates_delivery_info" "test_auto_enabling_integrations_catches_import_error" <ins> "test_leaks" </ins> ]; disabledTestPaths = [ # Don't test integrations "tests/integrations" <ins> # test crashes on aarch64 "tests/test_transport.py" ]; }); } ) # Octoprint fails due to a newly added test in pytest-httpbin # see https://github.com/NixOS/nixpkgs/issues/159864 ( self: super: { pytest-httpbin = super.pytest-httpbin.overridePythonAttrs (oldAttrs: rec { disabledTests = [ "test_redirect_location_is_https_for_secure_server" ]; }); } ) # All test fail on aarch64 ( self: super: { azure-core = super.azure-core.overridePythonAttrs (oldAttrs: rec { doCheck = stdenv.buildPlatform == "x86_64-linux"; }); } ) # needs network ( self: super: { falcon = super.falcon.overridePythonAttrs (oldAttrs: rec { #pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; disabledTestPaths = oldAttrs.disabledTestPaths ++ [ "tests/asgi/test_asgi_servers.py" ]; }); } ) # update broke some tests ( self: super: { sanic = super.sanic.overridePythonAttrs (oldAttrs: rec { disabledTestPaths = oldAttrs.disabledTestPaths ++ [ "test_cli.py" "test_cookies.py" # requires network "test_worker.py" </ins> ]; }); }

}) ]; <del> postPatch = let ignoreVersionConstraints = [ "cachelib" "colorlog" "emoji" "immutabledict" "PyYAML" "sarge" "sentry-sdk" "watchdog" "wrapt" "zeroconf" ]; in </del> <ins> postPatch = let ignoreVersionConstraints = [ "cachelib" "colorlog" "emoji" "immutabledict" "PyYAML" "sarge" "sentry-sdk" "watchdog" "wrapt" "zeroconf" ]; in </ins> '' <del> sed -r -i  ${lib.concatStringsSep "n" ( map ( e: ''-e 's@${e}[<>=]+.*@${e}",@g' '' ) ignoreVersionConstraints )} setup.py </del> <ins> sed -r -i  ${lib.concatStringsSep "n" ( map ( e: ''-e 's@${e}[<>=]+.*@${e}",@g' '' ) ignoreVersionConstraints )} setup.py </ins> ''; dontUseSetuptoolsCheck = true;

); }; in <del> with py.pkgs; toPythonApplication octoprint </del> <ins> with py.pkgs; toPythonApplication octoprint </ins>