Merge pull request #140690 from dotlambda/dateparser-1.1.0

python3Packages.dateparser: 1.0.0 -> 1.1.0

Changed files
+16 -3
pkgs
development
python-modules
dateparser
+16 -3
pkgs/development/python-modules/dateparser/default.nix
···
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, python-dateutil
, pytz
, regex
, tzlocal
, hijri-converter
, convertdate
, parameterized
, pytestCheckHook
, GitPython
···
buildPythonPackage rec {
pname = "dateparser";
-
version = "1.0.0";
disabled = !isPy3k;
···
owner = "scrapinghub";
repo = "dateparser";
rev = "v${version}";
-
sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl";
};
propagatedBuildInputs = [
# install_requires
python-dateutil pytz regex tzlocal
# extra_requires
-
hijri-converter convertdate
];
checkInputs = [
···
ruamel_yaml
];
# Upstream only runs the tests in tests/ in CI, others use git clone
pytestFlagsArray = [ "tests" ];
pythonImportsCheck = [ "dateparser" ];
···
, buildPythonPackage
, isPy3k
, fetchFromGitHub
+
, fetchpatch
, python-dateutil
, pytz
, regex
, tzlocal
, hijri-converter
, convertdate
+
, fasttext
+
, langdetect
, parameterized
, pytestCheckHook
, GitPython
···
buildPythonPackage rec {
pname = "dateparser";
+
version = "1.1.0";
disabled = !isPy3k;
···
owner = "scrapinghub";
repo = "dateparser";
rev = "v${version}";
+
sha256 = "sha256-RpQWDsj7vGtfu6wf4yETdswfXDfoTkburTl6aOA03Ww=";
};
propagatedBuildInputs = [
# install_requires
python-dateutil pytz regex tzlocal
# extra_requires
+
hijri-converter convertdate fasttext langdetect
];
checkInputs = [
···
ruamel_yaml
];
+
preCheck = ''
+
export HOME="$TEMPDIR"
+
'';
+
# Upstream only runs the tests in tests/ in CI, others use git clone
pytestFlagsArray = [ "tests" ];
+
+
disabledTests = [
+
# access network
+
"test_custom_language_detect_fast_text_0"
+
"test_custom_language_detect_fast_text_1"
+
];
pythonImportsCheck = [ "dateparser" ];