diff --git a/pkgs/development/python-modules/recurring-ical-events/default.nix b/pkgs/development/python-modules/recurring-ical-events/default.nix index 6f6df628d0fb..04d83dff0966 100644 --- a/pkgs/development/python-modules/recurring-ical-events/default.nix +++ b/pkgs/development/python-modules/recurring-ical-events/default.nix @@ -1,9 +1,10 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, - setuptools, + git, + hatch-vcs, + hatchling, icalendar, python-dateutil, tzdata, @@ -16,20 +17,25 @@ buildPythonPackage rec { pname = "recurring-ical-events"; - version = "3.4.1"; - - disabled = pythonOlder "3.8"; - + version = "3.6.0"; pyproject = true; src = fetchFromGitHub { owner = "niccokunzmann"; repo = "python-recurring-ical-events"; tag = "v${version}"; - hash = "sha256-JhGKowFtRJwLj/5J1lNpgMTl1d+oWsmV4wI3hfOW5io="; + hash = "sha256-wfp/ubFZv54z2d44hvG56xcCjGedYqW/zeNvaoPPJYE="; }; - build-system = [ setuptools ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'dynamic = ["urls", "version"]' 'version = "${version}"' + ''; + + build-system = [ + hatch-vcs + hatchling + ]; dependencies = [ icalendar