diff options
Diffstat (limited to 'pkgs/development/python-modules/xboxapi/default.nix')
-rw-r--r-- | pkgs/development/python-modules/xboxapi/default.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/xboxapi/default.nix b/pkgs/development/python-modules/xboxapi/default.nix index e0bb1614e339..3441760693ab 100644 --- a/pkgs/development/python-modules/xboxapi/default.nix +++ b/pkgs/development/python-modules/xboxapi/default.nix @@ -1,23 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests, + setuptools, }: buildPythonPackage rec { pname = "xboxapi"; version = "2.0.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "mKeRix"; repo = "xboxapi-python"; - rev = version; - sha256 = "10mhvallkwf5lw91hj5rv16sziqhhjq7sgcgr28sqqnlgjnyazdd"; + rev = "refs/tags/${version}"; + hash = "sha256-rX3lrXzUYqyRyI89fbCEEMevTdi5SBgSp8XxSanasII="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; + + dependencies = [ requests ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -26,7 +30,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python XBOX One API wrapper"; homepage = "https://github.com/mKeRix/xboxapi-python"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; } |