2018-07-21 00:44:44 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2017-12-12 10:33:33 +00:00
|
|
|
, nose
|
2018-02-05 23:49:10 +00:00
|
|
|
, parameterized
|
2017-12-12 10:33:33 +00:00
|
|
|
, mock
|
|
|
|
, glibcLocales
|
|
|
|
, six
|
|
|
|
, jdatetime
|
|
|
|
, dateutil
|
|
|
|
, umalqurra
|
|
|
|
, pytz
|
|
|
|
, tzlocal
|
|
|
|
, regex
|
|
|
|
, ruamel_yaml }:
|
2018-02-09 16:22:39 +00:00
|
|
|
|
2017-12-12 10:33:33 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dateparser";
|
2019-10-16 09:43:04 +00:00
|
|
|
version = "0.7.2";
|
2017-12-12 10:33:33 +00:00
|
|
|
|
2018-02-09 16:22:39 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 09:43:04 +00:00
|
|
|
sha256 = "e1eac8ef28de69a554d5fcdb60b172d526d61924b1a40afbbb08df459a36006b";
|
2017-12-12 10:33:33 +00:00
|
|
|
};
|
|
|
|
|
2018-02-09 16:22:39 +00:00
|
|
|
checkInputs = [ nose mock parameterized six glibcLocales ];
|
2017-12-12 10:33:33 +00:00
|
|
|
preCheck =''
|
|
|
|
# skip because of missing convertdate module, which is an extra requirement
|
|
|
|
rm tests/test_jalali.py
|
|
|
|
'';
|
|
|
|
|
2018-02-09 16:22:39 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# install_requires
|
|
|
|
dateutil pytz regex tzlocal
|
|
|
|
# extra_requires
|
|
|
|
jdatetime ruamel_yaml umalqurra
|
|
|
|
];
|
2017-12-12 10:33:33 +00:00
|
|
|
|
2018-02-09 16:22:39 +00:00
|
|
|
meta = with lib; {
|
2017-12-12 10:33:33 +00:00
|
|
|
description = "Date parsing library designed to parse dates from HTML pages";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/scrapinghub/dateparser";
|
2017-12-12 10:33:33 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|