python3Packages.control: fix build with matplotlib 3.11 and numpy 2.5

This commit is contained in:
Joseph Fox-Rabinovitz
2026-08-31 17:39:09 -05:00
parent 8638dfa493
commit 2df1ba87c6

View File

@@ -3,6 +3,7 @@
buildPythonPackage,
cvxopt,
fetchFromGitHub,
fetchpatch,
matplotlib,
numpy,
numpydoc,
@@ -25,6 +26,19 @@ buildPythonPackage rec {
hash = "sha256-E9RZDUK01hzjutq83XdLr3d97NwjmQzt65hqVg2TBGE=";
};
patches = [
# matplotlib >= 3.11 no longer warns when tight layout is not applied
(fetchpatch {
url = "https://github.com/python-control/python-control/commit/3b70cb41b5d41ed4aa4da9f2db2eb3d83c3ffdcd.patch";
hash = "sha256-zJAbgbeiYQlglG/mbtREvs7AFxwGxzlzrr0iuKPHp5I=";
})
# numpy >= 2.5 deprecates assigning to .shape
(fetchpatch {
url = "https://github.com/python-control/python-control/commit/ae4915c4ece5f417fa514dadeb0d30ab412a28aa.patch";
hash = "sha256-Z5U9sgtlp35bHYOYC2ag9007fGVXwzhTgBQN7yLsjCI=";
})
];
build-system = [
setuptools
setuptools-scm