diff --git a/pkgs/development/python-modules/prometheus-client/default.nix b/pkgs/development/python-modules/prometheus-client/default.nix index db3849ebbb45..94ff16c15f47 100644 --- a/pkgs/development/python-modules/prometheus-client/default.nix +++ b/pkgs/development/python-modules/prometheus-client/default.nix @@ -8,18 +8,19 @@ twisted, pytest-benchmark, pytestCheckHook, + nix-update-script, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "prometheus-client"; - version = "0.24.1"; + version = "0.25.0"; pyproject = true; src = fetchFromGitHub { owner = "prometheus"; repo = "client_python"; - tag = "v${version}"; - hash = "sha256-4swqhoCVrD7GflFbQX+QH9yGVDjbfwXvd7trs30STQQ="; + tag = "v${finalAttrs.version}"; + hash = "sha256-vue/5ulOnKkYjiHYWgT6HZ5mhV2vqAstm44+zwm+po0="; }; build-system = [ setuptools ]; @@ -34,7 +35,7 @@ buildPythonPackage rec { pytest-benchmark pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pytestFlags = [ "--benchmark-disable" ]; @@ -45,11 +46,13 @@ buildPythonPackage rec { "test_instance_ip_grouping_key" ]; + passthru.updateScript = nix-update-script { }; + meta = { description = "Prometheus instrumentation library for Python applications"; homepage = "https://github.com/prometheus/client_python"; - changelog = "https://github.com/prometheus/client_python/releases/tag/${src.tag}"; + changelog = "https://github.com/prometheus/client_python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})