WIP: Update python to 3.11 and use StrEnum #74

Draft
esavkin wants to merge 1 commits from esavkin/thermostat:71-update-nixos22_11 into master

Should wait until matplotlib package is fixed.
Closes #71

Should wait until matplotlib package is fixed. Closes #71
esavkin added 1 commit 2022-12-21 14:18:54 +08:00
9596320423 Update python to 3.11 and use StrEnum
Signed-off-by: Egor Savkin <es@m-labs.hk>
esavkin requested review from sb10q 2022-12-23 16:19:27 +08:00
sb10q reviewed 2022-12-27 17:25:41 +08:00
@ -71,3 +71,3 @@
rustPlatform.rust.cargo
openocd dfu-util
] ++ (with python3Packages; [
] ++ (with python311Packages; [

Did you test this?

Did you test this?

Should wait until matplotlib package is fixed.

Just work around the problem so you can test, e.g.

diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix
index 66b315f14ab..8cb901b7b9c 100644
--- a/pkgs/development/python-modules/cffi/default.nix
+++ b/pkgs/development/python-modules/cffi/default.nix
@@ -31,7 +31,7 @@ if isPyPy then null else buildPythonPackage rec {
 
   # Lots of tests fail on aarch64-darwin due to "Cannot allocate write+execute memory":
   # * https://cffi.readthedocs.io/en/latest/using.html#callbacks
-  doCheck = !stdenv.hostPlatform.isMusl && !(stdenv.isDarwin && stdenv.isAarch64);
+  doCheck = false;
 
   checkInputs = [ pytestCheckHook ];
 
> Should wait until matplotlib package is fixed. Just work around the problem so you can test, e.g. ``` diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index 66b315f14ab..8cb901b7b9c 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -31,7 +31,7 @@ if isPyPy then null else buildPythonPackage rec { # Lots of tests fail on aarch64-darwin due to "Cannot allocate write+execute memory": # * https://cffi.readthedocs.io/en/latest/using.html#callbacks - doCheck = !stdenv.hostPlatform.isMusl && !(stdenv.isDarwin && stdenv.isAarch64); + doCheck = false; checkInputs = [ pytestCheckHook ]; ```
Poster
Owner

Without matplotlib it works

Without matplotlib it works
This pull request has changes conflicting with the target branch.
  • flake.lock
  • flake.nix
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b esavkin-71-update-nixos22_11 master
git pull 71-update-nixos22_11

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff esavkin-71-update-nixos22_11
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/thermostat#74
There is no content yet.