pythonPackages.dateparser: switch to parameterized

nose-parameterized is deprecated and yields a warning
This commit is contained in:
Robert Schütz 2018-02-06 00:49:10 +01:00
parent b9f3d49edd
commit f3e87bf50f

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, isPy3k { stdenv, fetchFromGitHub, buildPythonPackage, isPy3k
, nose , nose
, nose-parameterized , parameterized
, mock , mock
, glibcLocales , glibcLocales
, six , six
@ -23,10 +23,16 @@ buildPythonPackage rec {
sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y"; sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y";
}; };
# Replace nose-parameterized by parameterized
prePatch = ''
sed -i s/nose_parameterized/parameterized/g tests/*.py
sed -i s/nose-parameterized/parameterized/g tests/requirements.txt
'';
# Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364 # Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364
disabled = isPy3k; disabled = isPy3k;
checkInputs = [ nose nose-parameterized mock glibcLocales ]; checkInputs = [ nose parameterized mock 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