build02/nixpkgs-update: unpin supervisor python

This commit is contained in:
zowoq 2024-04-18 11:36:39 +10:00
parent cdd225cc94
commit 1acf75b6d9
3 changed files with 4 additions and 6 deletions

View file

@ -198,7 +198,7 @@ in
restartIfChanged = true;
path = with pkgs; [
apacheHttpd
(python311.withPackages (ps: [ ps.asyncinotify ]))
(python3.withPackages (ps: [ ps.asyncinotify ]))
];
serviceConfig = {
@ -220,7 +220,7 @@ in
exec > >(rotatelogs -eD "$LOGS_DIRECTORY"'/~supervisor/%Y-%m-%d.stdout.log' 86400)
exec 2> >(rotatelogs -eD "$LOGS_DIRECTORY"'/~supervisor/%Y-%m-%d.stderr.log' 86400 >&2)
# Fetcher output is hosted at https://r.ryantm.com/log/~fetchers
python3.11 ${./supervisor.py} "$LOGS_DIRECTORY/~supervisor/state.db" "$LOGS_DIRECTORY/~fetchers" "$RUNTIME_DIRECTORY/work.sock"
python3 ${./supervisor.py} "$LOGS_DIRECTORY/~supervisor/state.db" "$LOGS_DIRECTORY/~fetchers" "$RUNTIME_DIRECTORY/work.sock"
'';
};

View file

@ -1,5 +1,4 @@
#!/usr/bin/env nix-shell
#! nix-shell -i python3.11 -p python311 python311Packages.asyncinotify
#!/usr/bin/env python3
r"""
Usage: supervisor.py <database_file> <input_dir> <worker_socket>

View file

@ -1,5 +1,4 @@
#!/usr/bin/env nix-shell
#! nix-shell -i python3.11 -p python311 python311Packages.asyncinotify
#!/usr/bin/env python3
"""
In-process unit and integration tests for supervisor.py. Uses temporary