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