nixpkgs/pkgs/development/python-modules/xboxapi/default.nix
2024-10-13 11:09:59 +02:00

37 lines
728 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "xboxapi";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mKeRix";
repo = "xboxapi-python";
rev = "refs/tags/${version}";
hash = "sha256-rX3lrXzUYqyRyI89fbCEEMevTdi5SBgSp8XxSanasII=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xboxapi" ];
meta = with lib; {
description = "Python XBOX One API wrapper";
homepage = "https://github.com/mKeRix/xboxapi-python";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}