diff --git a/pkgs/development/python-modules/pygti/default.nix b/pkgs/development/python-modules/pygti/default.nix index a9ee409a15ae..f557ffef4610 100644 --- a/pkgs/development/python-modules/pygti/default.nix +++ b/pkgs/development/python-modules/pygti/default.nix @@ -2,28 +2,34 @@ lib, buildPythonPackage, fetchFromGitHub, - setuptools-scm, + hatchling, + hatch-vcs, aiohttp, + pydantic, pytz, voluptuous, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pygti"; - version = "0.10.0"; + version = "1.1.1"; pyproject = true; src = fetchFromGitHub { owner = "vigonotion"; repo = "pygti"; - tag = version; - hash = "sha256-2T4Yw4XEOkv+IWyB4Xa2dPu929VH0tLeUjQ5S8EVXz0="; + tag = "v${finalAttrs.version}"; + hash = "sha256-B+jz91xoN7GiU4PnJTG5Kt1eA4ST63d+ZEgRrr9Xio8="; }; - build-system = [ setuptools-scm ]; + build-system = [ + hatchling + hatch-vcs + ]; dependencies = [ aiohttp + pydantic pytz voluptuous ]; @@ -38,10 +44,10 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/vigonotion/pygti/releases/tag/${src.tag}"; + changelog = "https://github.com/vigonotion/pygti/releases/tag/${finalAttrs.src.tag}"; description = "Access public transport information in Hamburg, Germany"; homepage = "https://github.com/vigonotion/pygti"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +})