minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/crs1ks6b3513ymkmxn8g4iivxz95gvkf-nixos-25.05.813814.ac62194c3917/nixos/pkgs/tools/inputmethods/fcitx5
Imports Python's subprocess moduleImports the requests HTTP client for Python
SHA-256a3fa6846af42348d6a87c00f9cb2eb6ea65c1205092e0f0403d6238d98ab8d17
MaleculeH₂(Cm₂Po₂)
Evidence
1#!/usr/bin/env nix-shell
2#!nix-shell -i python3 -p nix-update python3Packages.requests
3
4import requests
5import subprocess
6
7REPOS = [
⋯7 lines
28OWNER = "fcitx"
29
30def get_latest_tag(repo, owner=OWNER):
31 r = requests.get('https://api.github.com/repos/{}/{}/tags'.format(owner,repo))
32 return r.json()[0].get("name")
33
34def main():
35 for repo in REPOS:
36 rev = get_latest_tag(repo)
37 if repo == "fcitx5-qt":
38 subprocess.run(["nix-update", "--commit", "--version", rev, "libsForQt5.{}".format(repo)])
39 else:
40 subprocess.run(["nix-updat …