add python deps & playwright
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -17,8 +17,26 @@
|
||||
in with pkgs; rec {
|
||||
devShell = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
python3
|
||||
(python3.withPackages (ps: [
|
||||
ps.requests
|
||||
ps.beautifulsoup4
|
||||
ps.lxml
|
||||
ps."youtube-transcript-api"
|
||||
ps.pytube
|
||||
ps.playwright
|
||||
ps.markdown
|
||||
ps."python-dotenv"
|
||||
ps.pydantic
|
||||
ps."python-dateutil"
|
||||
]))
|
||||
playwright-driver.browsers
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
|
||||
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
|
||||
export PLAYWRIGHT_HOST_PLATFORM_OVERRIDE="ubuntu-24.04"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user