20 buildPythonPackage rec {
26 src = fetchFromGitHub {
27 owner = "scrapinghub";
30 sha256 = "sha256-bDup3q93Zq+pvwsy/lQy2byOMjG6C/+7813hWQMbZRU=";
36 name = "tests-31st.patch";
37 url = "https://github.com/scrapinghub/dateparser/commit/b132381b9c15e560a0be5183c7d96180119a7b4f.diff";
38 sha256 = "nQUWtfku5sxx/C45KJnfwvDXiccXGeVM+cQDKX9lxbE=";
43 substituteInPlace setup.py --replace \
44 'regex !=2019.02.19,!=2021.8.27,<2022.3.15' \
48 propagatedBuildInputs = [
50 python-dateutil pytz regex tzlocal
52 hijri-converter convertdate fasttext langdetect
63 export HOME="$TEMPDIR"
66 # Upstream only runs the tests in tests/ in CI, others use git clone
67 pytestFlagsArray = [ "tests" ];
71 "test_custom_language_detect_fast_text_0"
72 "test_custom_language_detect_fast_text_1"
75 pythonImportsCheck = [ "dateparser" ];
78 description = "Date parsing library designed to parse dates from HTML pages";
79 homepage = "https://github.com/scrapinghub/dateparser";
80 license = licenses.bsd3;
81 maintainers = with maintainers; [ dotlambda ];