1{ lib, fetchPypi, buildPythonPackage, isPy3k
2, nose
3, parameterized
4, mock
5, glibcLocales
6, six
7, jdatetime
8, dateutil
9, umalqurra
10, pytz
11, tzlocal
12, regex
13, ruamel_yaml }:
14
15buildPythonPackage rec {
16 pname = "dateparser";
17 version = "0.7.0";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "940828183c937bcec530753211b70f673c0a9aab831e43273489b310538dff86";
22 };
23
24 checkInputs = [ nose mock parameterized six glibcLocales ];
25 preCheck =''
26 # skip because of missing convertdate module, which is an extra requirement
27 rm tests/test_jalali.py
28 '';
29
30 propagatedBuildInputs = [
31 # install_requires
32 dateutil pytz regex tzlocal
33 # extra_requires
34 jdatetime ruamel_yaml umalqurra
35 ];
36
37 meta = with lib; {
38 description = "Date parsing library designed to parse dates from HTML pages";
39 homepage = https://github.com/scrapinghub/dateparser;
40 license = licenses.bsd3;
41 };
42}