Unverified Commit 09c4657c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.powerapi: enable on darwin (#470825)

parents 27a863ee 870c5161
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  influxdb-client,
@@ -10,7 +11,6 @@
  pytest-cov-stub,
  pytest-timeout,
  pytestCheckHook,
  pythonOlder,
  pyzmq,
  setproctitle,
  setuptools,
@@ -21,8 +21,6 @@ buildPythonPackage rec {
  version = "2.10.0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "powerapi-ng";
    repo = "powerapi";
@@ -30,6 +28,8 @@ buildPythonPackage rec {
    hash = "sha256-rn1qe0RwYuUR23CgzOOeiwe1wuFihnhQ9a6ALgSP/cQ=";
  };

  __darwinAllowLocalNetworking = true;

  build-system = [ setuptools ];

  dependencies = [
@@ -55,10 +55,17 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "powerapi" ];

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
    "test_puller"
    "TestDispatcher"
    "TestK8sProcessor"
    "TestPusher"
  ];

  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}";
    changelog = "https://github.com/powerapi-ng/powerapi/releases/tag/${src.tag}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
  };