1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 appdirs, 8 ecdsa, 9 httpx, 10 ms-cv, 11 pydantic, 12 pytest-asyncio_0, 13 pytestCheckHook, 14 respx, 15}: 16 17buildPythonPackage rec { 18 pname = "xbox-webapi"; 19 version = "2.1.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "OpenXbox"; 24 repo = "xbox-webapi-python"; 25 rev = "v${version}"; 26 hash = "sha256-9A3gdSlRjBCx5fBW+jkaSWsFuGieXQKvbEbZzGzLf94="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 appdirs 33 ecdsa 34 httpx 35 ms-cv 36 pydantic 37 ]; 38 39 nativeCheckInputs = [ 40 pytest-asyncio_0 41 pytestCheckHook 42 respx 43 ]; 44 45 # https://github.com/OpenXbox/xbox-webapi-python/issues/114 46 disabledTests = [ "test_import" ]; 47 48 meta = with lib; { 49 changelog = "https://github.com/OpenXbox/xbox-webapi-python/blob/${src.rev}/CHANGELOG.md"; 50 description = "Library to authenticate with Windows Live/Xbox Live and use their API"; 51 homepage = "https://github.com/OpenXbox/xbox-webapi-python"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ dotlambda ]; 54 }; 55}