I am currently trying to set up a dev shell as a flake for python development. However when running nix develop I run into the following error during the pyhtonRuntimeDepsCheck
> Checking runtime dependencies for poetry-2.2.1-py3-none-any.whl
> - pbs-installer<2026.0.0,>=2025.1.6 not satisfied by version 2026.1.13
This is the flake that I am currently using (missig the profile as the error is the same but you don’t need to read as much code here)
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pythonPkgs = pkgs.python311Packages;
python = pkgs.python311;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
fhs = pkgs.buildFHSEnv {
name = "mainline_shell";
targetPkgs = pkgs: (with pkgs; [
poetry
python
pythonPkgs.pip
ta-lib
stdenv.cc.cc.lib
#binutils
libz
graphviz
glibc
gnumake clang boost pkg-config cmake
]);
runScript = "bash";
};
in
{
devShells.default = fhs.env;
}
);
}
Now it seems like I should use an older version of the pbs-installer. Looking at the file in the nixpkgs repo nixpkgs/pkgs/by-name/po/poetry/unwrapped.nix at b14f9cf0d8fcf4fbd4e9ffea86df80ca56aaa16a · NixOS/nixpkgs · GitHub it seems like a possibility would be to override the dependency of the pbs-installer. However I was unsuccessful in doing so. Would be great if someone had an idea of how to make this work.
Update: this also seems to be a general issue in nixpkgs at the moment as
nix shell nixpkgs#poetry
also fails