depot/third_party/nixpkgs/pkgs/development/python-modules/xbox-webapi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 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 ];
};
}