1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, responses 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "python-twitch-client"; 13 version = "0.7.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "tsifrer"; 20 repo = "python-twitch-client"; 21 rev = "refs/tags/${version}"; 22 sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 requests 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 responses 36 ]; 37 38 pythonImportsCheck = [ 39 "twitch" 40 ]; 41 42 disabledTests = [ 43 # Tests require network access 44 "test_delete_from_community" 45 "test_update" 46 ]; 47 48 meta = with lib; { 49 description = "Python wrapper for the Twitch API"; 50 homepage = "https://github.com/tsifrer/python-twitch-client"; 51 changelog = "https://github.com/tsifrer/python-twitch-client/blob/${version}/CHANGELOG.md"; 52 license = with licenses; [ mit ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}