From 83026ffde6e1d15fb22644e635bca6b40aa865b4 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Aug 2024 18:50:29 +0200 Subject: [PATCH] python312Packages.twitch-python: modernize --- .../development/python-modules/twitch-python/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ];