git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #140690 from dotlambda/dateparser-1.1.0

python3Packages.dateparser: 1.0.0 -> 1.1.0

commitf9fbffdf02ef19dde4290706044f72b4b81e6bd4 authorFabian Affolter <fabian@affolter-engineering.ch> dateFri 8 Oct 2021, 08:14 (5 years ago) parent9e84e5f5fb4d44
1 file changed+16−3
pkgs/development/python-modules/dateparser/default.nix+16−3
pkgs/development/python-modules/dateparser/default.nix+16−3
@@ -2,12 +2,15 @@
22, buildPythonPackage
33, isPy3k
44, fetchFromGitHub
5+, fetchpatch
56, python-dateutil
67, pytz
78, regex
89, tzlocal
910, hijri-converter
1011, convertdate
12+, fasttext
13+, langdetect
1114, parameterized
1215, pytestCheckHook
1316, GitPython
@@ -16,7 +19,7 @@
1619
1720buildPythonPackage rec {
1821 pname = "dateparser";
19− version = "1.0.0";
22+ version = "1.1.0";
2023
2124 disabled = !isPy3k;
2225
@@ -24,14 +27,14 @@ buildPythonPackage rec {
2427 owner = "scrapinghub";
2528 repo = "dateparser";
2629 rev = "v${version}";
27− sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl";
30+ sha256 = "sha256-RpQWDsj7vGtfu6wf4yETdswfXDfoTkburTl6aOA03Ww=";
2831 };
2932
3033 propagatedBuildInputs = [
3134 # install_requires
3235 python-dateutil pytz regex tzlocal
3336 # extra_requires
34− hijri-converter convertdate
37+ hijri-converter convertdate fasttext langdetect
3538 ];
3639
3740 checkInputs = [
@@ -41,9 +44,19 @@ buildPythonPackage rec {
4144 ruamel_yaml
4245 ];
4346
47+ preCheck = ''
48+ export HOME="$TEMPDIR"
49+ '';
50+
4451 # Upstream only runs the tests in tests/ in CI, others use git clone
4552 pytestFlagsArray = [ "tests" ];
4653
54+ disabledTests = [
55+ # access network
56+ "test_custom_language_detect_fast_text_0"
57+ "test_custom_language_detect_fast_text_1"
58+ ];
59+
4760 pythonImportsCheck = [ "dateparser" ];
4861
4962 meta = with lib; {