diff --git a/pkgs/development/python-modules/convertdate/default.nix b/pkgs/development/python-modules/convertdate/default.nix index ded32b61f2ca..009efacb0e7f 100644 --- a/pkgs/development/python-modules/convertdate/default.nix +++ b/pkgs/development/python-modules/convertdate/default.nix @@ -5,21 +5,24 @@ pymeeus, pytz, pytestCheckHook, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "convertdate"; - version = "2.4.0"; - format = "setuptools"; + version = "2.4.1"; + pyproject = true; src = fetchFromGitHub { owner = "fitnr"; repo = "convertdate"; - rev = "v${version}"; - hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE="; + tag = "v${finalAttrs.version}"; + hash = "sha256-YgLKUSg95j9rRejkmep+Levy5Rvnl/kXEiXuS7hazbY="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ pymeeus pytz ]; @@ -30,9 +33,10 @@ buildPythonPackage rec { meta = { description = "Utils for converting between date formats and calculating holidays"; - mainProgram = "censusgeocode"; homepage = "https://github.com/fitnr/convertdate"; + changelog = "https://github.com/fitnr/convertdate/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jluttine ]; + mainProgram = "censusgeocode"; }; -} +})