Install deps for python script.

This commit is contained in:
2026-01-12 15:00:31 +00:00
parent 0e585e6bb4
commit df2f52ad50

View File

@@ -8,12 +8,35 @@
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
# Custom Python package: garth (not in nixpkgs)
garth = pkgs.python3Packages.buildPythonPackage {
pname = "garth";
version = "0.5.21";
src = pkgs.fetchPypi {
pname = "garth";
version = "0.5.21";
sha256 = "sha256-jZeVldHU6iOhtGarSmCVXRObcfiG9GSQvhQPzuWE2rQ=";
};
format = "pyproject";
nativeBuildInputs = [ pkgs.python3Packages.hatchling ];
propagatedBuildInputs = with pkgs.python3Packages; [
pydantic
requests-oauthlib
requests
];
doCheck = false;
};
# Python with garth for Garmin auth scripts
pythonWithGarth = pkgs.python3.withPackages (ps: [ garth ]);
# Common packages for development # Common packages for development
commonPackages = with pkgs; [ commonPackages = [
nodejs_24 pkgs.nodejs_24
pnpm pkgs.pnpm
git pkgs.git
pocketbase pkgs.pocketbase
pythonWithGarth
]; ];
in { in {
# Docker image for production deployment # Docker image for production deployment