1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, appdirs 7, ecdsa 8, ms-cv 9, pydantic 10, aresponses 11, pytest-asyncio 12, pytestCheckHook 13}: 14 15buildPythonPackage rec { 16 pname = "xbox-webapi"; 17 version = "2.0.11"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "OpenXbox"; 23 repo = "xbox-webapi-python"; 24 rev = "v${version}"; 25 sha256 = "0li0bq914xizx9fj49s1iwfrv4bpzvl74bwsi5a34r9yizw02cvz"; 26 }; 27 28 postPatch = '' 29 substituteInPlace setup.py \ 30 --replace "pytest-runner" "" 31 ''; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 appdirs 36 ecdsa 37 ms-cv 38 pydantic 39 ]; 40 41 nativeCheckInputs = [ 42 aresponses 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 pytestFlagsArray = [ 48 "--asyncio-mode=auto" 49 ]; 50 51 meta = with lib; { 52 description = "Library to authenticate with Windows Live/Xbox Live and use their API"; 53 homepage = "https://github.com/OpenXbox/xbox-webapi-python"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ dotlambda ]; 56 }; 57}