Merge pull request #297554 from mweinelt/prometheus-client-0.20

python311Packages.prometheus-client: 0.19.0 -> 0.20.0
This commit is contained in:
Martin Weinelt 2024-03-21 06:19:44 +01:00 committed by GitHub
commit aebd4702ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"