2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
requests,
|
|
|
|
pytestCheckHook,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xboxapi";
|
|
|
|
version = "2.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mKeRix";
|
|
|
|
repo = "xboxapi-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10mhvallkwf5lw91hj5rv16sziqhhjq7sgcgr28sqqnlgjnyazdd";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|