Initial commit

This commit is contained in:
marc
2025-03-09 20:00:54 +01:00
commit efd26ce19d
118 changed files with 78086 additions and 0 deletions

53
flake.nix Normal file
View File

@@ -0,0 +1,53 @@
{
description = "Development flake for the HTMX folkugat web";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python311;
pythonPackages = pkgs.python311Packages;
# custom-python = import ./custom-python.nix { inherit pkgs; };
projectDependencies = with pythonPackages; [
# API
fastapi
jinja2
uvicorn
# Auth
pyjwt
# Search
levenshtein
# Test
pytest
];
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
# Core python dependencies
python
pythonPackages.pip
pythonPackages.virtualenv
# Other dependencies
nodePackages_latest.tailwindcss
# IDE tools
pythonPackages.pylsp-mypy
pythonPackages.isort
pythonPackages.autopep8
nodePackages.pyright
# Development tools
black
pythonPackages.ipython
pythonPackages.pytest
pythonPackages.setuptools
] ++ projectDependencies;
};
});
}