chore(projects/khora): add development shell

Assisted-by: openai-codex (gpt-5.6-luna)
Assisted-by: pi (gpt-5.6-sol)
This commit is contained in:
Gabriel Fontes
2026-08-15 15:05:23 -03:00
parent 4d00f544bd
commit 3dfb7307b2
11 changed files with 16 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
use flake .#khora
+7
View File
@@ -28,6 +28,13 @@ nix build .#khora
nix run .#khora
```
For a faster development loop, enter `projects/khora` and let direnv load its
Khora development shell, then run the source tree directly:
```sh
python -m khora
```
Khora reads the same XDG configuration and vdirs as khal. It does not configure
accounts or perform network synchronization.
+7 -1
View File
@@ -3,6 +3,7 @@
python3Packages,
khal,
gobject-introspection,
gsettings-desktop-schemas,
gtk4,
libadwaita,
wrapGAppsHook4,
@@ -16,8 +17,9 @@ python3Packages.buildPythonApplication {
root = ./.;
fileset = lib.fileset.unions [
./data
./README.md
./pyproject.toml
./src
./khora
./tests
];
};
@@ -38,6 +40,10 @@ python3Packages.buildPythonApplication {
];
nativeCheckInputs = [python3Packages.pytestCheckHook];
shellHook = ''
export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk4}/share/gsettings-schemas/${gtk4.name}:$XDG_DATA_DIRS"
'';
postInstall = ''
install -Dm644 data/rs.m7.Khora.desktop \
$out/share/applications/rs.m7.Khora.desktop
+1 -1
View File
@@ -18,7 +18,7 @@ dependencies = [
khora = "khora.application:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["khora*"]
[tool.pytest.ini_options]
testpaths = ["tests"]