diff options
Diffstat (limited to 'pkgs/development/python-modules/dateparser/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dateparser/default.nix | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index ca9e2f823748c..7db2e1d15b744 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, isPy3k +, pythonOlder , fetchFromGitHub , fetchpatch , python-dateutil @@ -21,27 +21,19 @@ buildPythonPackage rec { pname = "dateparser"; - version = "1.1.3"; + version = "1.1.4"; - disabled = !isPy3k; + disabled = pythonOlder "3.7"; + + format = "setuptools"; src = fetchFromGitHub { owner = "scrapinghub"; repo = "dateparser"; rev = "v${version}"; - sha256 = "sha256-2bZaaaLT3hocIiqLZpudP6gmiYwxPNMrjG9dYF3GvTc="; + sha256 = "sha256-r13WNI+T2NtTwjnGOqX3ZOqPhvr8fBdXGULW7IXszlo="; }; - patches = [ - ./regex-compat.patch - ]; - - postPatch = '' - substituteInPlace setup.py --replace \ - 'regex !=2019.02.19,!=2021.8.27,<2022.3.15' \ - 'regex' - ''; - propagatedBuildInputs = [ python-dateutil pytz @@ -80,6 +72,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "dateparser" ]; meta = with lib; { + changelog = "https://github.com/scrapinghub/dateparser/blob/${src.rev}/HISTORY.rst"; description = "Date parsing library designed to parse dates from HTML pages"; homepage = "https://github.com/scrapinghub/dateparser"; license = licenses.bsd3; |