{nix,pyproject.toml}: add pytest, pytest-cov

This commit is contained in:
2025-06-10 20:58:49 +02:00
parent 634716956e
commit 8807d7278a
3 changed files with 17 additions and 0 deletions

View File

@@ -13,6 +13,14 @@ python3Packages.buildPythonApplication {
# https://github.com/NixOS/nixpkgs/issues/285234
dontCheckRuntimeDeps = true;
pythonImportsCheck = [];
doCheck = true;
nativeCheckInputs = with python3Packages; [
pytest
pytestCheckHook
];
nativeBuildInputs = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
brother-ql

View File

@@ -15,6 +15,9 @@ mkShell {
psycopg2
python-barcode
sqlalchemy
pytest
pytest-cov
]))
];
}

View File

@@ -20,6 +20,12 @@ dependencies = [
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
]
[tool.setuptools.packages.find]
include = ["dibbler*"]