python3Packages.dateparser: 1.0.0 -> 1.1.0

https://github.com/scrapinghub/dateparser/releases/tag/v1.1.0
This commit is contained in:
Robert Schütz 2021-10-05 17:10:41 -07:00
parent 7882b7fa23
commit 5fb4d4488e

View File

@ -2,12 +2,15 @@
, buildPythonPackage , buildPythonPackage
, isPy3k , isPy3k
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python-dateutil , python-dateutil
, pytz , pytz
, regex , regex
, tzlocal , tzlocal
, hijri-converter , hijri-converter
, convertdate , convertdate
, fasttext
, langdetect
, parameterized , parameterized
, pytestCheckHook , pytestCheckHook
, GitPython , GitPython
@ -16,7 +19,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dateparser"; pname = "dateparser";
version = "1.0.0"; version = "1.1.0";
disabled = !isPy3k; disabled = !isPy3k;
@ -24,14 +27,14 @@ buildPythonPackage rec {
owner = "scrapinghub"; owner = "scrapinghub";
repo = "dateparser"; repo = "dateparser";
rev = "v${version}"; rev = "v${version}";
sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl"; sha256 = "sha256-RpQWDsj7vGtfu6wf4yETdswfXDfoTkburTl6aOA03Ww=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
# install_requires # install_requires
python-dateutil pytz regex tzlocal python-dateutil pytz regex tzlocal
# extra_requires # extra_requires
hijri-converter convertdate hijri-converter convertdate fasttext langdetect
]; ];
checkInputs = [ checkInputs = [
@ -41,9 +44,19 @@ buildPythonPackage rec {
ruamel_yaml ruamel_yaml
]; ];
preCheck = ''
export HOME="$TEMPDIR"
'';
# Upstream only runs the tests in tests/ in CI, others use git clone # Upstream only runs the tests in tests/ in CI, others use git clone
pytestFlagsArray = [ "tests" ]; pytestFlagsArray = [ "tests" ];
disabledTests = [
# access network
"test_custom_language_detect_fast_text_0"
"test_custom_language_detect_fast_text_1"
];
pythonImportsCheck = [ "dateparser" ]; pythonImportsCheck = [ "dateparser" ];
meta = with lib; { meta = with lib; {