diff options
author | Nick Cao <nickcao@nichi.co> | 2023-11-13 08:33:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 08:33:17 -0500 |
commit | 565d973451609ae6fb02ff0841924762cad7c251 (patch) | |
tree | 83cba16360550d73e777c819a01571f35edbc6a6 /pkgs/development | |
parent | b54d7ccebefca3024bb8f74e3a06c9913392e41c (diff) | |
parent | 95b40d0ffdb292be563c3abc54cba4c68376abf3 (diff) |
Merge pull request #267194 from fabaff/python-twitch-client-fix
python311Packages.python-twitch-client: fix build
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/python-twitch-client/default.nix | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/python-twitch-client/default.nix b/pkgs/development/python-modules/python-twitch-client/default.nix index b069de34c3f4f..29a10ced06f28 100644 --- a/pkgs/development/python-modules/python-twitch-client/default.nix +++ b/pkgs/development/python-modules/python-twitch-client/default.nix @@ -5,32 +5,50 @@ , pythonOlder , requests , responses +, setuptools }: buildPythonPackage rec { pname = "python-twitch-client"; version = "0.7.1"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "tsifrer"; - repo = pname; - rev = version; - sha256 = "10wwkam3dw0nqr3v9xzigx1zjlrnrhzr7jvihddvzi84vjb6j443"; + repo = "python-twitch-client"; + rev = "refs/tags/${version}"; + sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM="; }; - propagatedBuildInputs = [ requests ]; + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + requests + ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ "twitch" ]; + pythonImportsCheck = [ + "twitch" + ]; + + disabledTests = [ + # Tests require network access + "test_delete_from_community" + "test_update" + ]; meta = with lib; { description = "Python wrapper for the Twitch API"; homepage = "https://github.com/tsifrer/python-twitch-client"; + changelog = "https://github.com/tsifrer/python-twitch-client/blob/${version}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; |