mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
python312Packages.editdistpy: add tests
This commit is contained in:
parent
34cfa58e79
commit
d244ab663d
@ -2,10 +2,16 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
, pytestCheckHook
|
||||||
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, cython_3
|
, cython_3
|
||||||
|
|
||||||
|
, symspellpy
|
||||||
|
, numpy
|
||||||
|
, editdistpy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -27,9 +33,27 @@ buildPythonPackage rec {
|
|||||||
cython_3
|
cython_3
|
||||||
];
|
];
|
||||||
|
|
||||||
# for tests need symspellpy package, symspellpy is not in nixpkgs...
|
# error: infinite recursion encountered
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
symspellpy
|
||||||
|
numpy
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
rm -r editdistpy
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
check = editdistpy.overridePythonAttrs (
|
||||||
|
_: {
|
||||||
|
doCheck = true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"editdistpy"
|
"editdistpy"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user