mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 10:30:32 +00:00
python3Packages.dateparser: 1.2.2 -> 1.3.0
Diff: https://github.com/scrapinghub/dateparser/compare/v1.2.2...v1.3.0
Changelog: https://github.com/scrapinghub/dateparser/blob/v1.3.0/HISTORY.rst
(cherry picked from commit 758579952e)
This commit is contained in:
committed by
Michael Daniels
parent
3bd2cdf85f
commit
37f295bfd2
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
setuptools,
|
||||
python-dateutil,
|
||||
pytz,
|
||||
@@ -12,6 +11,7 @@
|
||||
hijridate,
|
||||
convertdate,
|
||||
fasttext,
|
||||
numpy,
|
||||
langdetect,
|
||||
parameterized,
|
||||
pytestCheckHook,
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dateparser";
|
||||
version = "1.2.2";
|
||||
version = "1.3.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -33,20 +33,12 @@ buildPythonPackage rec {
|
||||
owner = "scrapinghub";
|
||||
repo = "dateparser";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-cUbY6c0JFzs1oZJOTnMXz3uCah2f50g8/3uWQXtwiGY=";
|
||||
hash = "sha256-X15zNHlF34+8Lmo6Ia3HyKOdfgsu76KbcJUxzHax0EE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/scrapinghub/dateparser/pull/1294
|
||||
url = "https://github.com/scrapinghub/dateparser/commit/6b23348b9367d43bebc9a40b00dda3363eb2acd5.patch";
|
||||
hash = "sha256-LriRbGdYxF51Nwrm7Dp4kivyMikzmhytNQo0txMGsVI=";
|
||||
})
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
python-dateutil
|
||||
pytz
|
||||
regex
|
||||
@@ -58,7 +50,10 @@ buildPythonPackage rec {
|
||||
hijridate
|
||||
convertdate
|
||||
];
|
||||
fasttext = [ fasttext ];
|
||||
fasttext = [
|
||||
fasttext
|
||||
numpy
|
||||
];
|
||||
langdetect = [ langdetect ];
|
||||
};
|
||||
|
||||
@@ -83,10 +78,6 @@ buildPythonPackage rec {
|
||||
# access network
|
||||
"test_custom_language_detect_fast_text_0"
|
||||
"test_custom_language_detect_fast_text_1"
|
||||
|
||||
# breaks with latest tzdata: https://github.com/scrapinghub/dateparser/issues/1237
|
||||
# FIXME: look into this more
|
||||
"test_relative_base"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "dateparser" ];
|
||||
|
||||
Reference in New Issue
Block a user