diff options
Diffstat (limited to 'pkgs/development/python-modules/twitch-python/default.nix')
-rw-r--r-- | pkgs/development/python-modules/twitch-python/default.nix | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/twitch-python/default.nix b/pkgs/development/python-modules/twitch-python/default.nix index 9a578ebeedc27..0f5cfad85ac4f 100644 --- a/pkgs/development/python-modules/twitch-python/default.nix +++ b/pkgs/development/python-modules/twitch-python/default.nix @@ -1,9 +1,19 @@ -{ lib, buildPythonPackage, fetchPypi, requests, rx, pytestCheckHook, responses, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + requests, + rx, + pytestCheckHook, + responses, + isPy3k, +}: buildPythonPackage rec { pname = "twitch-python"; version = "0.0.20"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -13,12 +23,20 @@ buildPythonPackage rec { disabled = !isPy3k; postPatch = '' - substituteInPlace setup.py --replace "'pipenv'," "" + substituteInPlace setup.py --replace-fail "'pipenv'," "" ''; - propagatedBuildInputs = [ requests rx ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook responses ]; + dependencies = [ + requests + rx + ]; + + nativeCheckInputs = [ + pytestCheckHook + responses + ]; pythonImportsCheck = [ "twitch" ]; @@ -26,6 +44,6 @@ buildPythonPackage rec { description = "Twitch module for Python"; homepage = "https://github.com/PetterKraabol/Twitch-Python"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |