From ea7336a084a37d99548781ddeb4de41f394ca3f1 Mon Sep 17 00:00:00 2001 From: "Andy Chun @noneucat" Date: Thu, 23 Jun 2022 15:41:53 -0700 Subject: [PATCH] nixops_unstable: set Python interpreter to python39 The package encounters a build error when building with Python 3.10 due to API breakage (collections.MutableMapping -> collections.abc.MutableMapping). --- pkgs/applications/networking/cluster/nixops/default.nix | 1 + pkgs/applications/networking/cluster/nixops/pyproject.toml | 2 +- pkgs/applications/networking/cluster/nixops/shell.nix | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/nixops/default.nix b/pkgs/applications/networking/cluster/nixops/default.nix index 1f08aad53e4e..58229718aa58 100644 --- a/pkgs/applications/networking/cluster/nixops/default.nix +++ b/pkgs/applications/networking/cluster/nixops/default.nix @@ -10,6 +10,7 @@ let interpreter = ( poetry2nix.mkPoetryPackages { projectDir = ./.; + python = pkgs.python39; overrides = [ poetry2nix.defaultPoetryOverrides (import ./poetry-git-overlay.nix { inherit pkgs; }) diff --git a/pkgs/applications/networking/cluster/nixops/pyproject.toml b/pkgs/applications/networking/cluster/nixops/pyproject.toml index a5ca9e0b5efb..1a1097649493 100644 --- a/pkgs/applications/networking/cluster/nixops/pyproject.toml +++ b/pkgs/applications/networking/cluster/nixops/pyproject.toml @@ -5,7 +5,7 @@ description = "NixOps 2.0" authors = ["Adam Hoese "] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" nixops = {git = "https://github.com/NixOS/nixops.git"} nixops-aws = {git = "https://github.com/NixOS/nixops-aws.git"} nixops-digitalocean = {git = "https://github.com/nix-community/nixops-digitalocean.git"} diff --git a/pkgs/applications/networking/cluster/nixops/shell.nix b/pkgs/applications/networking/cluster/nixops/shell.nix index 0139cb2c8125..a40c600691ea 100644 --- a/pkgs/applications/networking/cluster/nixops/shell.nix +++ b/pkgs/applications/networking/cluster/nixops/shell.nix @@ -5,6 +5,6 @@ pkgs.mkShell { pkgs.poetry2nix.cli pkgs.pkg-config pkgs.libvirt - pkgs.poetry + pkgs.python39Packages.poetry ]; }