From 62ca5836361ae73f07bae70d2d5591f9d485c864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 26 Nov 2023 18:07:14 -0800 Subject: [PATCH 1/2] python311Packages.dateparser: 1.1.8 -> 1.2.0 Diff: https://github.com/scrapinghub/dateparser/compare/refs/tags/v1.1.8...v1.2.0 Changelog: https://github.com/scrapinghub/dateparser/blob/refs/tags/v1.2.0/HISTORY.rst --- .../python-modules/dateparser/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index 3f6bfdf86d6af..46587e4e823b4 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, fetchpatch +, setuptools , python-dateutil , pytz , regex @@ -21,19 +21,23 @@ buildPythonPackage rec { pname = "dateparser"; - version = "1.1.8"; + version = "1.2.0"; disabled = pythonOlder "3.7"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "scrapinghub"; repo = "dateparser"; rev = "refs/tags/v${version}"; - hash = "sha256-52g8defF5bsisBv2QoyUymXcf0sljOI9PjeR4l0Pw6k="; + hash = "sha256-mnL44hojebOwP6qtEBHs5QM4uRmLuGlVNr+sM3jZEKE="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ python-dateutil pytz From 27386a6fb4663dc35d855c283dab254718624a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 26 Nov 2023 18:11:10 -0800 Subject: [PATCH 2/2] python311Packages.dateparser: add meta.mainProgram --- pkgs/development/python-modules/dateparser/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index 46587e4e823b4..b97dabbc2d918 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -80,6 +80,7 @@ buildPythonPackage rec { description = "Date parsing library designed to parse dates from HTML pages"; homepage = "https://github.com/scrapinghub/dateparser"; license = licenses.bsd3; + mainProgram = "dateparser-download"; maintainers = with maintainers; [ dotlambda ]; }; }