nixpkgs/pkgs/development/python-modules/python-xbox/default.nix

68 lines
1.2 KiB
Nix

{
buildPythonPackage,
cryptography,
fetchFromGitHub,
freezegun,
hatch-regex-commit,
hatchling,
httpx,
lib,
ms-cv,
platformdirs,
pydantic,
pytest-asyncio,
pytestCheckHook,
respx,
}:
buildPythonPackage rec {
pname = "python-xbox";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tr4nt0r";
repo = "python-xbox";
tag = "v${version}";
hash = "sha256-5sYN7w/cemZPMt8awsoaUPo845oXiiUsIfl8GG85Umw=";
};
build-system = [
hatch-regex-commit
hatchling
];
pythonRelaxDeps = [
"pydantic"
];
dependencies = [
cryptography
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 ];
};
}