python312Packages.powerapi: init at 2.9.1 (#360441)

This commit is contained in:
Fabian Affolter 2024-12-02 08:59:17 +01:00 committed by GitHub
commit d003febf88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,64 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
influxdb-client,
kubernetes,
mock,
prometheus-client,
pymongo,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
pythonOlder,
pyzmq,
setproctitle,
setuptools,
}:
buildPythonPackage rec {
pname = "powerapi";
version = "2.9.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "powerapi-ng";
repo = "powerapi";
rev = "refs/tags/v${version}";
hash = "sha256-iFWCrO9frMK68kefmKQrXra1g5efDCj2ZOlVwxDNvXw=";
};
build-system = [ setuptools ];
dependencies = [
pyzmq
setproctitle
];
optional-dependencies = {
influxdb = [ influxdb-client ];
kubernetes = [ kubernetes ];
mongodb = [ pymongo ];
# opentsdb = [ opentsdb-py ];
prometheus = [ prometheus-client ];
};
nativeCheckInputs = [
mock
pytest-cov-stub
pytestCheckHook
pytest-timeout
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "powerapi" ];
meta = {
description = "Python framework for building software-defined power meters";
homepage = "https://github.com/powerapi-ng/powerapi";
changelog = "https://github.com/powerapi-ng/powerapi/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -10864,6 +10864,8 @@ self: super: with self; {
power = callPackage ../development/python-modules/power { };
powerapi = callPackage ../development/python-modules/powerapi { };
powerline = callPackage ../development/python-modules/powerline { };
powerline-mem-segment = callPackage ../development/python-modules/powerline-mem-segment { };