2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
, appdirs
|
|
|
|
, ecdsa
|
2024-01-13 08:15:51 +00:00
|
|
|
, httpx
|
2021-06-28 23:13:55 +00:00
|
|
|
, ms-cv
|
|
|
|
, pydantic
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
, respx
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xbox-webapi";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
pyproject = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenXbox";
|
|
|
|
repo = "xbox-webapi-python";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-9A3gdSlRjBCx5fBW+jkaSWsFuGieXQKvbEbZzGzLf94=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
ecdsa
|
2024-01-13 08:15:51 +00:00
|
|
|
httpx
|
2021-06-28 23:13:55 +00:00
|
|
|
ms-cv
|
|
|
|
pydantic
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
respx
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/OpenXbox/xbox-webapi-python/blob/${src.rev}/CHANGELOG.md";
|
2021-06-28 23:13:55 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|