e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, appdirs
|
|
, ecdsa
|
|
, httpx
|
|
, ms-cv
|
|
, pydantic
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, respx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xbox-webapi";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenXbox";
|
|
repo = "xbox-webapi-python";
|
|
rev = "v${version}";
|
|
hash = "sha256-9A3gdSlRjBCx5fBW+jkaSWsFuGieXQKvbEbZzGzLf94=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
ecdsa
|
|
httpx
|
|
ms-cv
|
|
pydantic
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
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;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|