Unverified Commit 99a56f70 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.pyqwikswitch: replace async-timeout with asyncio.timeout (#447970)

parents dc704e61 86bbe056
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchpatch,
  fetchPypi,
  attrs,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyqwikswitch";
  version = "0.94";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-IpyWz+3EMr0I+xULBJJhBgdnQHNPJIM1SqKFLpszhQc=";
  };

  propagatedBuildInputs = [
  patches = [
    # https://github.com/kellerza/pyqwikswitch/pull/7
    (fetchpatch {
      name = "replace-async-timeout-with-asyncio.timeout.patch";
      url = "https://github.com/kellerza/pyqwikswitch/commit/7b3f2211962b30bb6beea9a4fe17cd04cdf8e27f.patch";
      hash = "sha256-sdO5jzIgKdneNY5dTngIzUFtyRg7HBGaZA1BBeAJxu4=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
    attrs
    requests
  ];
+0 −1
Original line number Diff line number Diff line
@@ -490,7 +490,6 @@ python.pkgs.buildPythonApplication rec {
      # some components are needed even if tests in tests/components are disabled
      "default_config"
      "hue"
      "qwikswitch"
    ];

  pytestFlags = [