mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.prometheus-client: 0.24.1 -> 0.25.0; add nix-update-script, modernize (#525109)
This commit is contained in:
commit
d71c764701
1 changed files with 10 additions and 7 deletions
|
|
@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue