From 9445f43a69425654fddeac9b5f7dd3e2dfa62943 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Feb 2021 08:49:24 +0100 Subject: [PATCH] python3Packages.xboxapi: init at 2.0.1 --- .../python-modules/xboxapi/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/xboxapi/default.nix diff --git a/pkgs/development/python-modules/xboxapi/default.nix b/pkgs/development/python-modules/xboxapi/default.nix new file mode 100644 index 000000000000..973f2f6aba24 --- /dev/null +++ b/pkgs/development/python-modules/xboxapi/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "xboxapi"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "mKeRix"; + repo = "xboxapi-python"; + rev = version; + sha256 = "10mhvallkwf5lw91hj5rv16sziqhhjq7sgcgr28sqqnlgjnyazdd"; + }; + + propagatedBuildInputs = [ requests ]; + + checkInputs = [ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 315e9202da00..1abe2afffe1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8324,6 +8324,8 @@ in { xattr = callPackage ../development/python-modules/xattr { }; + xboxapi = callPackage ../development/python-modules/xboxapi { }; + xcaplib = callPackage ../development/python-modules/xcaplib { }; xcffib = callPackage ../development/python-modules/xcffib { };