diff --git a/pkgs/development/python-modules/elgato/default.nix b/pkgs/development/python-modules/elgato/default.nix index 8da6e8bd1042..6744422eb8bf 100644 --- a/pkgs/development/python-modules/elgato/default.nix +++ b/pkgs/development/python-modules/elgato/default.nix @@ -8,6 +8,7 @@ orjson, poetry-core, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, pythonOlder, yarl, @@ -16,7 +17,7 @@ buildPythonPackage rec { pname = "elgato"; version = "5.1.2"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.11"; @@ -31,12 +32,11 @@ buildPythonPackage rec { # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" \ - --replace "--cov" "" ''; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp mashumaro orjson @@ -46,6 +46,7 @@ buildPythonPackage rec { nativeCheckInputs = [ aresponses pytest-asyncio + pytest-cov-stub pytestCheckHook ]; @@ -55,7 +56,7 @@ buildPythonPackage rec { description = "Python client for Elgato Key Lights"; homepage = "https://github.com/frenck/python-elgato"; changelog = "https://github.com/frenck/python-elgato/releases/tag/v${version}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }