1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "xboxapi";
10 version = "2.0.1";
11
12 src = fetchFromGitHub {
13 owner = "mKeRix";
14 repo = "xboxapi-python";
15 rev = version;
16 sha256 = "10mhvallkwf5lw91hj5rv16sziqhhjq7sgcgr28sqqnlgjnyazdd";
17 };
18
19 propagatedBuildInputs = [ requests ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "xboxapi" ];
24
25 meta = with lib; {
26 description = "Python XBOX One API wrapper";
27 homepage = "https://github.com/mKeRix/xboxapi-python";
28 license = with licenses; [ mit ];
29 maintainers = with maintainers; [ fab ];
30 };
31}