python3Packages.xbox-webapi: init at 2.0.11
This commit is contained in:
parent
625f2a8eaa
commit
5de528024e
53
pkgs/development/python-modules/xbox-webapi/default.nix
Normal file
53
pkgs/development/python-modules/xbox-webapi/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, appdirs
|
||||
, ecdsa
|
||||
, ms-cv
|
||||
, pydantic
|
||||
, aresponses
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xbox-webapi";
|
||||
version = "2.0.11";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenXbox";
|
||||
repo = "xbox-webapi-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "0li0bq914xizx9fj49s1iwfrv4bpzvl74bwsi5a34r9yizw02cvz";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
appdirs
|
||||
ecdsa
|
||||
ms-cv
|
||||
pydantic
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -9048,6 +9048,8 @@ in {
|
||||
|
||||
xattr = callPackage ../development/python-modules/xattr { };
|
||||
|
||||
xbox-webapi = callPackage ../development/python-modules/xbox-webapi { };
|
||||
|
||||
xboxapi = callPackage ../development/python-modules/xboxapi { };
|
||||
|
||||
xcffib = callPackage ../development/python-modules/xcffib { };
|
||||
|
Loading…
Reference in New Issue
Block a user