better way to declare python functions

This commit is contained in:
2025-02-19 10:46:06 -06:00
parent 8aa2d98cdc
commit 9a7b09c159
2 changed files with 14 additions and 14 deletions

View File

@@ -2,18 +2,18 @@
pkgs ? import <nixpkgs> { },
}:
let
pythonPackages = builtins.attrValues {
inherit (pkgs.python3Packages) setuptools pyyaml types-pyyaml;
};
otherPackages = builtins.attrValues {
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
};
in
pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (_ps: pythonPackages))
] ++ otherPackages;
packages =
[
(pkgs.python3.withPackages (
ps:
builtins.attrValues {
inherit (ps) setuptools pyyaml types-pyyaml;
}
))
]
++ builtins.attrValues {
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
};
buildInputs = [ ];
}