octoprint: 1.11.7 -> 1.11.8 (#545567)

This commit is contained in:
2026-07-25 16:31:06 +00:00
committed by GitHub
+29 -32
View File
@@ -4,7 +4,9 @@
callPackage,
lib,
fetchFromGitHub,
python3,
# OctoPrint requires Python >=3.7, <3.14, so it cannot use the default python3
# while that points at 3.14.
python313,
replaceVars,
nix-update-script,
nixosTests,
@@ -13,38 +15,21 @@
}:
let
py = python3.override {
py = python313.override {
self = py;
packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) [
(
self: super: {
# fix tornado.httputil.HTTPInputError: Multiple host headers not allowed
tornado = super.tornado.overridePythonAttrs (oldAttrs: {
version = "6.4.2";
format = "setuptools";
pyproject = null;
src = fetchFromGitHub {
owner = "tornadoweb";
repo = "tornado";
tag = "v6.4.2";
hash = "sha256-qgJh8pnC1ALF8KxhAYkZFAc0DE6jHVB8R/ERJFL4OFc=";
};
doCheck = false;
});
})
# Built-in dependency
(self: super: {
octoprint-filecheck = self.buildPythonPackage rec {
pname = "OctoPrint-FileCheck";
version = "2024.11.12";
version = "2025.7.23";
format = "setuptools";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-FileCheck";
rev = version;
sha256 = "sha256-Y7yvImnYahmrf5GC4c8Ki8IsOZ8r9I4uk8mYBhEQZ28=";
hash = "sha256-Y3JVfbe+bZz2t65OqdjvVVqTSa0VUPoCaxvE+zQ+Qts=";
};
doCheck = false;
};
@@ -54,14 +39,14 @@ let
(self: super: {
octoprint-firmwarecheck = self.buildPythonPackage rec {
pname = "OctoPrint-FirmwareCheck";
version = "2021.10.11";
version = "2025.7.23";
format = "setuptools";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-FirmwareCheck";
rev = version;
hash = "sha256-wqbD82bhJDrDawJ+X9kZkoA6eqGxqJc1Z5dA0EUwgEI=";
hash = "sha256-QPchpyeotB5IKbfES74CJlhw3sz8Q1df/+n5dpbrHSs=";
};
doCheck = false;
};
@@ -70,14 +55,14 @@ let
(self: super: {
octoprint-pisupport = self.buildPythonPackage rec {
pname = "OctoPrint-PiSupport";
version = "2023.10.10";
version = "2025.7.23";
format = "setuptools";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-PiSupport";
rev = version;
hash = "sha256-VSzDoFq4Yn6KOn+RNi1uVJHzH44973kd/VoMjqzyBRA=";
hash = "sha256-bXjRGxIwi+UnVts2HO9viOJqa2AmZ/CL7wuoyzRbAEw=";
};
# requires octoprint itself during tests
@@ -92,20 +77,21 @@ let
(self: super: {
octoprint = self.buildPythonPackage rec {
pname = "OctoPrint";
version = "1.11.7";
version = "1.11.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint";
rev = version;
hash = "sha256-X9+o3EpTtKAFiSmjOumRCDKNwBc9LVjvqyZqun3yDi8=";
hash = "sha256-yTHzBqwVxAP6EokiWqD/SR6P2X4gIGyiyzNH0UzzDB4=";
};
propagatedBuildInputs =
with self;
[
argon2-cffi
babel
blinker
cachelib
click
@@ -120,21 +106,23 @@ let
flask-limiter
frozendict
itsdangerous
immutabledict
jinja2
libpass
limits
markdown
markupsafe
netaddr
netifaces
octoprint-filecheck
octoprint-firmwarecheck
passlib
packaging
pathvalidate
pkginfo
pip
pkginfo
psutil
pylru
pyserial
pytz
pyyaml
regex
requests
@@ -148,6 +136,7 @@ let
watchdog
websocket-client
werkzeug
wheel
wrapt
zeroconf
zipstream-ng
@@ -179,14 +168,21 @@ let
postPatch =
let
ignoreVersionConstraints = [
"Babel"
"cachelib"
"Click"
"colorlog"
"emoji"
"immutabledict"
"limits"
"markdown"
"netaddr"
"psutil"
"PyYAML"
"requests"
"sarge"
"sentry-sdk"
"watchdog"
"websocket-client"
"wrapt"
"zeroconf"
"Flask-Login"
@@ -199,7 +195,7 @@ let
''
sed -r -i \
${lib.concatStringsSep "\n" (
map (e: ''-e 's@${e}[<>=]+.*@${e}",@g' \'') ignoreVersionConstraints
map (e: ''-e 's@${e}[<>=!]+.*@${e}",@g' \'') ignoreVersionConstraints
)}
setup.py
'';
@@ -214,6 +210,7 @@ let
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_set_external_modification" ];
disabledTestPaths = [
"tests/http_api" # requires a live OctoPrint server; excluded by upstream pytest.ini
"tests/test_octoprint_setuptools.py" # fails due to distutils and python3.12
];