python311Packages.prometheus-client: 0.19.0 -> 0.20.0

https://github.com/prometheus/client_python/releases/tag/v0.20.0
This commit is contained in:
Martin Weinelt 2024-03-20 23:17:41 +01:00
parent 28230fab1a
commit 7135c15593
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,29 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, twisted
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.19.0";
format = "setuptools";
version = "0.20.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "prometheus";
repo = "client_python";
rev = "refs/tags/v${version}";
hash = "sha256-7mVqfzK0E8RQAlQyQD8/DIcPJZ52V13JqU22tsQJp+Q=";
hash = "sha256-IMw0mpOUzjXBy4bMTeSFMc5pdibI5lGxZHKiufjPLbM=";
};
build-system = [
setuptools
];
optional-dependencies.twisted = [
twisted
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytestCheckHook
];
]
++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [
"prometheus_client"