{nix,pyproject.toml}: add pytest, pytest-cov
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -19,11 +19,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742288794,
|
"lastModified": 1749285348,
|
||||||
"narHash": "sha256-Txwa5uO+qpQXrNG4eumPSD+hHzzYi/CdaM80M9XRLCo=",
|
"narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b6eaf97c6960d97350c584de1b6dcff03c9daf42",
|
"rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@@ -13,6 +13,14 @@ python3Packages.buildPythonApplication {
|
|||||||
# https://github.com/NixOS/nixpkgs/issues/285234
|
# https://github.com/NixOS/nixpkgs/issues/285234
|
||||||
dontCheckRuntimeDeps = true;
|
dontCheckRuntimeDeps = true;
|
||||||
|
|
||||||
|
pythonImportsCheck = [];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
nativeCheckInputs = with python3Packages; [
|
||||||
|
pytest
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [ setuptools ];
|
nativeBuildInputs = with python3Packages; [ setuptools ];
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
brother-ql
|
brother-ql
|
||||||
|
@@ -15,6 +15,9 @@ mkShell {
|
|||||||
psycopg2
|
psycopg2
|
||||||
python-barcode
|
python-barcode
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
|
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -20,6 +20,12 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = ["dibbler*"]
|
include = ["dibbler*"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user