Robert Schütz 2023-11-27 09:23:40 -08:00 committed by Martin Weinelt
parent c8a1640649
commit 26eed3b8ef
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -2,54 +2,51 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, setuptools
, appdirs
, ecdsa
, httpx
, ms-cv
, pydantic
, aresponses
, pytest-asyncio
, pytestCheckHook
, respx
}:
buildPythonPackage rec {
pname = "xbox-webapi";
version = "2.0.11";
format = "setuptools";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "OpenXbox";
repo = "xbox-webapi-python";
rev = "v${version}";
sha256 = "0li0bq914xizx9fj49s1iwfrv4bpzvl74bwsi5a34r9yizw02cvz";
hash = "sha256-9A3gdSlRjBCx5fBW+jkaSWsFuGieXQKvbEbZzGzLf94=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
appdirs
ecdsa
httpx
ms-cv
pydantic
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=auto"
respx
];
meta = with lib; {
changelog = "https://github.com/OpenXbox/xbox-webapi-python/blob/${src.rev}/CHANGELOG.md";
description = "Library to authenticate with Windows Live/Xbox Live and use their API";
homepage = "https://github.com/OpenXbox/xbox-webapi-python";
license = licenses.mit;