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).
This commit is contained in:
Andy Chun @noneucat 2022-06-23 15:41:53 -07:00
parent c49e4ce3fc
commit ea7336a084
3 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ let
interpreter = (
poetry2nix.mkPoetryPackages {
projectDir = ./.;
python = pkgs.python39;
overrides = [
poetry2nix.defaultPoetryOverrides
(import ./poetry-git-overlay.nix { inherit pkgs; })

View File

@ -5,7 +5,7 @@ description = "NixOps 2.0"
authors = ["Adam Hoese <adam.hose@tweag.io>"]
[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"}

View File

@ -5,6 +5,6 @@ pkgs.mkShell {
pkgs.poetry2nix.cli
pkgs.pkg-config
pkgs.libvirt
pkgs.poetry
pkgs.python39Packages.poetry
];
}