mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #327962 from mbalatsko/init-prometheus-async
python3Packages.prometheus-async: init at 22.1.0
This commit is contained in:
commit
0cf43d590a
65
pkgs/development/python-modules/prometheus-async/default.nix
Normal file
65
pkgs/development/python-modules/prometheus-async/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
, flit-core
|
||||
|
||||
, prometheus-client
|
||||
, typing-extensions
|
||||
, wrapt
|
||||
, aiohttp
|
||||
, twisted
|
||||
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prometheus-async";
|
||||
version = "22.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hynek";
|
||||
repo = "prometheus-async";
|
||||
rev = version;
|
||||
hash = "sha256-2C4qr0gLYHndd49UfjtuF/v05Hl2PuyegPUhCAmd5/E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
prometheus-client
|
||||
typing-extensions
|
||||
wrapt
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
aiohttp = [
|
||||
aiohttp
|
||||
];
|
||||
consul = [
|
||||
aiohttp
|
||||
];
|
||||
twisted = [
|
||||
twisted
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "prometheus_async" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Async helpers for prometheus_client";
|
||||
homepage = "https://github.com/hynek/prometheus-async";
|
||||
changelog = "https://github.com/hynek/prometheus-async/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ mbalatsko ];
|
||||
};
|
||||
}
|
|
@ -10108,6 +10108,8 @@ self: super: with self; {
|
|||
|
||||
prodict = callPackage ../development/python-modules/prodict { };
|
||||
|
||||
prometheus-async = callPackage ../development/python-modules/prometheus-async { };
|
||||
|
||||
prometheus-pandas = callPackage ../development/python-modules/prometheus-pandas { };
|
||||
|
||||
prophet = callPackage ../development/python-modules/prophet { };
|
||||
|
|
Loading…
Reference in a new issue