python312Packages.twitch-python: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:29 +02:00
parent 227ac2a7eb
commit 83026ffde6

View File

@ -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
];