Unverified Commit 668e3549 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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

home-assistant: support epic_games_store component
parents 810afbd5 ecf7f38c
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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 { };