Set up testing with pytest and co

This commit is contained in:
2025-06-10 20:58:49 +02:00
parent acb31992f8
commit 3678c18b98
8 changed files with 580 additions and 76 deletions

View File

@@ -37,6 +37,14 @@ python3Packages.buildPythonApplication {
sqlalchemy
];
pythonImportsCheck = [];
doCheck = true;
nativeCheckInputs = with python3Packages; [
pytest
pytestCheckHook
];
postInstall = ''
wrapProgram $out/bin/dibbler \
--prefix PATH : "${lib.makeBinPath [ less ]}"

View File

@@ -1,6 +1,6 @@
{
mkShell,
python,
python3,
ruff,
uv,
}:
@@ -9,12 +9,16 @@ mkShell {
packages = [
ruff
uv
(python.withPackages (ps: with ps; [
(python3.withPackages (ps: with ps; [
# brother-ql
# matplotlib
psycopg2
# python-barcode
sqlalchemy
sqlparse
pytest
pytest-cov
]))
];
}