Problem description:
Nix builtin buildPythonPackage breaks Repl and gets stuck on pythonCatchConflictsStage.
Expected behavior:
Enter a Nix Shell.
Actual behavior:
Stuck on pythonCatchConfictStage
Steps to reproduce:
{ pkgs ? import <nixpkgs> {} }:
let
VERSION = "0.0.1";
my-python-packages = ps: with ps; [
pip
setuptools
openai
numpy
pynacl
typing
pillow
(buildPythonPackage rec {
pname = "SpeechRecognition";
version = "3.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-FBMRVeiougDq0be5saL6cchF5Ntfml9mozob1sVcbDU=";
};
doCheck = false;
buildInputs = with pkgs; [
# Specify dependencies
python39Packages.requests
];
})
(buildPythonPackage rec {
pname = "discord";
version = "2.2.2";
src = fetchGit {
url = "https://github.com/Sheepposu/discord.py";
ref = "voice-receive";
};
doCheck = false;
buildInputs = with pkgs; [
# Specify dependencies
python39Packages.aiohttp
python39Packages.multidict
];
})
pyaudio
];
my-python = pkgs.python39.withPackages my-python-packages;
in pkgs.mkShell {
nativeCheckInputs = with pkgs; [
# Deps
];
packages = with pkgs; [
my-python
portaudio
];
doCheck = true;
shellHook = ''
echo "Please see README.md for a full explanation!"
'';
}
You can run this in a blank Repl and it gets stuck. No error, just stuck. However, as of today, this executes perfectly fine on NixOS and Nix (Ubuntu WSL). The Repl also correctly enters the shell fine by removing the buildPythonPackage snippets, which is why I believe this is the issue.