diff --git a/pkgs/development/python-modules/prometheus-async/default.nix b/pkgs/development/python-modules/prometheus-async/default.nix index 9f35acd96b1a..a8c89b503d61 100644 --- a/pkgs/development/python-modules/prometheus-async/default.nix +++ b/pkgs/development/python-modules/prometheus-async/default.nix @@ -1,52 +1,45 @@ { lib, + aiohttp, buildPythonPackage, fetchFromGitHub, - - flit-core, - + hatch-vcs, + hatchling, prometheus-client, + pytest-asyncio, + pytestCheckHook, + twisted, typing-extensions, wrapt, - aiohttp, - twisted, - - pytestCheckHook, - pytest-asyncio, }: buildPythonPackage rec { pname = "prometheus-async"; - version = "22.1.0"; + version = "25.1.0"; pyproject = true; src = fetchFromGitHub { owner = "hynek"; repo = "prometheus-async"; rev = version; - hash = "sha256-2C4qr0gLYHndd49UfjtuF/v05Hl2PuyegPUhCAmd5/E="; + hash = "sha256-e/BVxATpafxddq26Rt7XTiK4ajY+saUApXbmTG0/I6I="; }; - nativeBuildInputs = [ - flit-core + build-system = [ + hatch-vcs + hatchling ]; - propagatedBuildInputs = [ + dependencies = [ prometheus-client typing-extensions wrapt ]; optional-dependencies = { - aiohttp = [ - aiohttp - ]; - consul = [ - aiohttp - ]; - twisted = [ - twisted - ]; + aiohttp = [ aiohttp ]; + consul = [ aiohttp ]; + twisted = [ twisted ]; }; nativeCheckInputs = [