about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/xboxapi/default.nix
blob: e0bb1614e3399fb9c774a1e2a77026df83974f42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "xboxapi";
  version = "2.0.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mKeRix";
    repo = "xboxapi-python";
    rev = version;
    sha256 = "10mhvallkwf5lw91hj5rv16sziqhhjq7sgcgr28sqqnlgjnyazdd";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "xboxapi" ];

  meta = with lib; {
    description = "Python XBOX One API wrapper";
    homepage = "https://github.com/mKeRix/xboxapi-python";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}