nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 1.5 kB view raw
1diff --git a/pyproject.toml b/pyproject.toml 2index 3762b62..dfee082 100644 3--- a/pyproject.toml 4+++ b/pyproject.toml 5@@ -33,7 +33,7 @@ classifiers = [ 6 "Topic :: Terminals", 7 "Topic :: Utilities", 8 ] 9-dependencies = ["aiohttp >=3.12.13", "nodejs-wheel-binaries >= 22.20.0"] 10+dependencies = ["aiohttp >=3.12.13"] 11 12 [project.urls] 13 "Homepage" = "https://github.com/juanbindez/pytubefix" 14diff --git a/pytubefix/botGuard/bot_guard.py b/pytubefix/botGuard/bot_guard.py 15index d7bde7e..ca10816 100644 16--- a/pytubefix/botGuard/bot_guard.py 17+++ b/pytubefix/botGuard/bot_guard.py 18@@ -1,11 +1,10 @@ 19 import os 20 import subprocess 21 import sys 22-import nodejs_wheel.executable 23 24 PLATFORM = sys.platform 25 26-NODE_DIR = nodejs_wheel.executable.ROOT_DIR 27+NODE_DIR = "@nodejs@" 28 29 def _node_path() -> str: 30 suffix = ".exe" if os.name == "nt" else "" 31diff --git a/pytubefix/sig_nsig/node_runner.py b/pytubefix/sig_nsig/node_runner.py 32index 9ac068a..a7a2c72 100644 33--- a/pytubefix/sig_nsig/node_runner.py 34+++ b/pytubefix/sig_nsig/node_runner.py 35@@ -1,11 +1,10 @@ 36 import os 37 import json 38 import subprocess 39-import nodejs_wheel.executable 40 41 42 RUNNER_PATH = os.path.join(os.path.dirname(__file__), "vm", "runner.js") 43-NODE_DIR = nodejs_wheel.executable.ROOT_DIR 44+NODE_DIR = "@nodejs@" 45 46 class NodeRunner: 47 def __init__(self, code: str): 48@@ -44,4 +43,4 @@ class NodeRunner: 49 def close(self): 50 self.proc.stdin.close() 51 self.proc.terminate() 52- self.proc.wait() 53\ No newline at end of file 54+ self.proc.wait()