Merge pull request #336852 from dotlambda/python3Packages.epicstore-api

home-assistant: support epic_games_store component
This commit is contained in:
Martin Weinelt 2024-08-23 22:49:09 +02:00 committed by GitHub
commit 668e3549d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,40 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "epicstore-api";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "SD4RK";
repo = "epicstore_api";
rev = "refs/tags/v_${version}";
hash = "sha256-AF2yNb06GShdaMS74pGFdHeM4U6ULdMCPzCyh8gSck0=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
pythonImportsCheck = [ "epicstore_api" ];
nativeCheckInputs = [ pytestCheckHook ];
# tests directory exists but contains no test cases
doCheck = false;
meta = {
changelog = "https://github.com/SD4RK/epicstore_api/releases/tag/v_${version}";
description = "Epic Games Store Web API Wrapper written in Python";
homepage = "https://github.com/SD4RK/epicstore_api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -1069,7 +1069,8 @@
pyephember
];
"epic_games_store" = ps: with ps; [
]; # missing inputs: epicstore-api
epicstore-api
];
"epion" = ps: with ps; [
epion
];
@ -5023,6 +5024,7 @@
"enocean"
"enphase_envoy"
"environment_canada"
"epic_games_store"
"epion"
"epson"
"eq3btsmart"

View File

@ -3996,6 +3996,8 @@ self: super: with self; {
ephemeral-port-reserve = callPackage ../development/python-modules/ephemeral-port-reserve { };
epicstore-api = callPackage ../development/python-modules/epicstore-api { };
epion = callPackage ../development/python-modules/epion { };
epitran = callPackage ../development/python-modules/epitran { };