diff --git a/pkgs/development/python-modules/twitch-python/default.nix b/pkgs/development/python-modules/twitch-python/default.nix index 9cf268fc0b64..0f5cfad85ac4 100644 --- a/pkgs/development/python-modules/twitch-python/default.nix +++ b/pkgs/development/python-modules/twitch-python/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, requests, rx, pytestCheckHook, @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "twitch-python"; version = "0.0.20"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -22,10 +23,12 @@ buildPythonPackage rec { disabled = !isPy3k; postPatch = '' - substituteInPlace setup.py --replace "'pipenv'," "" + substituteInPlace setup.py --replace-fail "'pipenv'," "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ requests rx ];