Verified Commit abf37207 authored by Sumner Evans's avatar Sumner Evans 💬

development works in NixOS

parent aa20eaad
Pipeline #202241765 passed with stages
in 9 minutes and 57 seconds
# Run poetry install and activate the virtualenv
poetry install -E chromecast -E keyring -E server
use nix
# Run poetry install if there's not a virtualenv already.
if [[ ! -d .venv ]]; then
echo "No virtualenv found, installing dependencies using Poetry..."
poetry install -E chromecast -E keyring -E server
fi
# Activate the virtualenv
source .venv/bin/activate
watch_file pyproject.toml
watch_file poetry.lock
watch_file setup.py
watch_file shell.nix
unset PS1
.direnv
flatpak/flatpak_build_dir/
flatpak/sublime-music.flatpak
flatpak/repo
......
{
"python.jediEnabled": false,
"python.analysis.openFilesOnly": false,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
......
This diff is collapsed.
{ pkgs ? import <nixpkgs> {} }: with pkgs;
pkgs.mkShell {
nativeBuildInputs = [
gobject-introspection
python3Packages.setuptools
wrapGAppsHook
];
buildInputs = [
flatpak
flatpak-builder
gcc
git
glib
gobjectIntrospection
gtk3
libnotify
pango
pkgconfig
];
propagatedBuildInputs = with pkgs; [
cairo
mpv
poetry
python38
rnix-lsp
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.mpv}/lib
export XDG_DATA_DIRS="$GSETTINGS_SCHEMA_PATH:${pkgs.arc-theme}/share:${pkgs.arc-icon-theme}/share"
export SOURCE_DATE_EPOCH=315532800
'';
}
......@@ -39,7 +39,7 @@ def main():
min_log_level = getattr(logging, args.loglevel.upper(), None)
if not isinstance(min_log_level, int):
logging.error(f"Invalid log level: {args.loglevel.upper()}.")
print(f"Invalid log level: {args.loglevel.upper()}.") # noqa: T001
min_log_level = logging.WARNING
logging.basicConfig(
......
......@@ -52,9 +52,6 @@ try:
except Exception:
# I really don't care what kind of exception it is, all that matters is the
# import failed for some reason.
logging.warning(
"Unable to import NM from GLib. Detection of SSID will be disabled."
)
networkmanager_imported = False
REQUEST_DELAY: Optional[Tuple[float, float]] = None
......
......@@ -116,7 +116,7 @@ class ChromecastPlayer(Player):
return
if self.stop_get_chromecasts is not None:
self.stop_get_chromecasts()
self.stop_get_chromecasts.cancel()
for id_, chromecast in self._chromecasts.items():
self.player_device_change_callback(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment