diff --git a/pkgs/development/python-modules/python-xbox/default.nix b/pkgs/development/python-modules/python-xbox/default.nix new file mode 100644 index 000000000000..e056254e11ec --- /dev/null +++ b/pkgs/development/python-modules/python-xbox/default.nix @@ -0,0 +1,68 @@ +{ + buildPythonPackage, + ecdsa, + fetchFromGitHub, + freezegun, + hatch-regex-commit, + hatchling, + httpx, + lib, + ms-cv, + platformdirs, + pydantic, + pytest-asyncio, + pytestCheckHook, + respx, +}: + +buildPythonPackage rec { + pname = "python-xbox"; + version = "0.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tr4nt0r"; + repo = "python-xbox"; + tag = "v${version}"; + hash = "sha256-YP8iK7uGycwKlWwAUmfk3qXI+c6cddg9nQ4NMQF7wDQ="; + }; + + build-system = [ + hatch-regex-commit + hatchling + ]; + + pythonRelaxDeps = [ + "pydantic" + ]; + + dependencies = [ + ecdsa + httpx + ms-cv + pydantic + ]; + + optional-dependencies = { + cli = [ + platformdirs + ]; + }; + + pythonImportsCheck = [ "pythonxbox" ]; + + nativeCheckInputs = [ + freezegun + pytest-asyncio + pytestCheckHook + respx + ]; + + meta = { + changelog = "https://github.com/tr4nt0r/python-xbox/releases/tag/${src.tag}"; + description = ":ibrary to authenticate with Xbox Network and use their API"; + homepage = "https://github.com/tr4nt0r/python-xbox"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27627cf47399..edfb5e78ebf5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15475,6 +15475,8 @@ self: super: with self; { ; }; + python-xbox = callPackage ../development/python-modules/python-xbox { }; + python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { }; python-xz = callPackage ../development/python-modules/python-xz { };