mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
python311Packages.xbox-webapi: 2.0.11 -> 2.1.0
Diff: https://github.com/OpenXbox/xbox-webapi-python/compare/v2.0.11...v2.1.0 Changelog: https://github.com/OpenXbox/xbox-webapi-python/blob/v2.1.0/CHANGELOG.md
This commit is contained in:
parent
c8a1640649
commit
26eed3b8ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user