1{ lib, buildPythonPackage, fetchPypi, requests, rx, pytestCheckHook, responses, isPy3k }: 2 3buildPythonPackage rec { 4 pname = "twitch-python"; 5 version = "0.0.20"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-bgnXIQuOCrtoknZ9ciB56zWxTCnncM2032TVaey6oXw="; 10 }; 11 12 disabled = !isPy3k; 13 14 postPatch = '' 15 substituteInPlace setup.py --replace "'pipenv'," "" 16 ''; 17 18 propagatedBuildInputs = [ requests rx ]; 19 20 nativeCheckInputs = [ pytestCheckHook responses ]; 21 22 pythonImportsCheck = [ "twitch" ]; 23 24 meta = with lib; { 25 description = "Twitch module for Python"; 26 homepage = "https://github.com/PetterKraabol/Twitch-Python"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ marsam ]; 29 }; 30}