From 5fb4d4488ec96f73ea92d155914eea9c6c741086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 5 Oct 2021 17:10:41 -0700 Subject: [PATCH] python3Packages.dateparser: 1.0.0 -> 1.1.0 https://github.com/scrapinghub/dateparser/releases/tag/v1.1.0 --- .../python-modules/dateparser/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index 6cbd1df32a57..e1f2f9336877 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -2,12 +2,15 @@ , buildPythonPackage , isPy3k , fetchFromGitHub +, fetchpatch , python-dateutil , pytz , regex , tzlocal , hijri-converter , convertdate +, fasttext +, langdetect , parameterized , pytestCheckHook , GitPython @@ -16,7 +19,7 @@ buildPythonPackage rec { pname = "dateparser"; - version = "1.0.0"; + version = "1.1.0"; disabled = !isPy3k; @@ -24,14 +27,14 @@ buildPythonPackage rec { owner = "scrapinghub"; repo = "dateparser"; rev = "v${version}"; - sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl"; + sha256 = "sha256-RpQWDsj7vGtfu6wf4yETdswfXDfoTkburTl6aOA03Ww="; }; propagatedBuildInputs = [ # install_requires python-dateutil pytz regex tzlocal # extra_requires - hijri-converter convertdate + hijri-converter convertdate fasttext langdetect ]; checkInputs = [ @@ -41,9 +44,19 @@ buildPythonPackage rec { 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" ]; meta = with lib; {