python3Packages.prometheus-client: 0.24.1 -> 0.25.0; add nix-update-script, modernize (#525109)

This commit is contained in:
Alexis Hildebrandt 2026-06-08 22:59:28 +00:00 committed by GitHub
commit d71c764701
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = [ ];
};
}
})