1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, responses 8}: 9 10buildPythonPackage rec { 11 pname = "python-twitch-client"; 12 version = "0.7.1"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "tsifrer"; 17 repo = pname; 18 rev = version; 19 sha256 = "10wwkam3dw0nqr3v9xzigx1zjlrnrhzr7jvihddvzi84vjb6j443"; 20 }; 21 22 propagatedBuildInputs = [ requests ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 responses 27 ]; 28 29 pythonImportsCheck = [ "twitch" ]; 30 31 meta = with lib; { 32 description = "Python wrapper for the Twitch API"; 33 homepage = "https://github.com/tsifrer/python-twitch-client"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}