Unverified Commit 0279da2b authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

python3Packages.pyspcwebgw: replace async-timeout with asyncio.timeout (#461836)

parents 80cb6c42 553ed1e9
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -5,18 +5,16 @@
  asynccmd,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  poetry-core,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "pyspcwebgw";
  version = "0.7.0";
  format = "pyproject";

  disabled = pythonOlder "3.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mbrrg";
@@ -25,9 +23,18 @@ buildPythonPackage rec {
    hash = "sha256-gdIrbr25GXaX26B1f7u0NKbqqnAC2tmMFZspzW6I4HI=";
  };

  nativeBuildInputs = [ poetry-core ];
  patches = [
    # https://github.com/pyspcwebgw/pyspcwebgw/pull/27
    (fetchpatch {
      name = "replace-async-timeout-with-asyncio.timeout.patch";
      url = "https://github.com/pyspcwebgw/pyspcwebgw/commit/22cacc8db53cf2a244c30c0e62a0dad90fbcb00b.patch";
      hash = "sha256-Og0imZts49jwjbz7Yp41UIzwU/lVjKVc/Tp4+vNz32U=";
    })
  ];

  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    asynccmd
    aiohttp
  ];
@@ -38,8 +45,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pytestFlags = [ "--asyncio-mode=auto" ];

  pythonImportsCheck = [ "pyspcwebgw" ];

  meta = with lib; {