python.pkgs.dateparser: disable tests

This commit is contained in:
Frederik Rietdijk 2020-06-07 15:36:06 +02:00
parent 02f7e6c767
commit 6d863b2c98

View File

@ -11,7 +11,10 @@
, pytz , pytz
, tzlocal , tzlocal
, regex , regex
, ruamel_yaml }: , ruamel_yaml
, python
, isPy3k
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dateparser"; pname = "dateparser";
@ -22,12 +25,27 @@ buildPythonPackage rec {
sha256 = "fb5bfde4795fa4b179fe05c2c25b3981f785de26bec37e247dee1079c63d5689"; sha256 = "fb5bfde4795fa4b179fe05c2c25b3981f785de26bec37e247dee1079c63d5689";
}; };
checkInputs = [ flake8 nose mock parameterized six glibcLocales ]; checkInputs = [
flake8
nose
mock
parameterized
six
glibcLocales
];
preCheck ='' preCheck =''
# skip because of missing convertdate module, which is an extra requirement # skip because of missing convertdate module, which is an extra requirement
rm tests/test_jalali.py rm tests/test_jalali.py
''; '';
checkPhase = ''
${python.interpreter} -m unittest discover -s tests
'';
# Strange
# AttributeError: 'module' object has no attribute 'config'
doCheck = false;
propagatedBuildInputs = [ propagatedBuildInputs = [
# install_requires # install_requires
dateutil pytz regex tzlocal dateutil pytz regex tzlocal