diff --git a/pkgs/development/python-modules/pyspcwebgw/default.nix b/pkgs/development/python-modules/pyspcwebgw/default.nix index 952f33739f24..e10b743b637e 100644 --- a/pkgs/development/python-modules/pyspcwebgw/default.nix +++ b/pkgs/development/python-modules/pyspcwebgw/default.nix @@ -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="; + }) + ]; - propagatedBuildInputs = [ + build-system = [ poetry-core ]; + + dependencies = [ asynccmd aiohttp ]; @@ -38,8 +45,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlags = [ "--asyncio-mode=auto" ]; - pythonImportsCheck = [ "pyspcwebgw" ]; meta = with lib; {