mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
python312Packages.mail-parser: refactor test
This commit is contained in:
parent
d91a2832bd
commit
298d3d05f2
@ -4,6 +4,8 @@
|
||||
python,
|
||||
glibcLocales,
|
||||
fetchFromGitHub,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
six,
|
||||
}:
|
||||
@ -32,9 +34,15 @@ buildPythonPackage rec {
|
||||
six
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mailparser" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Taken from .travis.yml
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/test_main.py
|
||||
postCheck = ''
|
||||
${python.interpreter} -m mailparser -v
|
||||
${python.interpreter} -m mailparser -h
|
||||
${python.interpreter} -m mailparser -f tests/mails/mail_malformed_3 -j
|
||||
|
Loading…
Reference in New Issue
Block a user