Set up testing with pytest and co
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
]))
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user