Unverified Commit 559f9839 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #310164 from fabaff/rokuecp-bump

python312Packages.rokuecp: 0.19.2 -> 0.19.3
parents 8baf4267 43cc6801
Loading
Loading
Loading
Loading
+28 −31
Original line number Diff line number Diff line
{ lib
, aiohttp
, aresponses
, awesomeversion
, backoff
, buildPythonPackage
, cachetools
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-freezegun
, pytestCheckHook
, pythonOlder
, xmltodict
, yarl
{
  lib,
  aiohttp,
  aresponses,
  awesomeversion,
  backoff,
  buildPythonPackage,
  cachetools,
  fetchFromGitHub,
  poetry-core,
  pytest-asyncio,
  pytest-freezegun,
  pytestCheckHook,
  pythonOlder,
  xmltodict,
  yarl,
}:

buildPythonPackage rec {
  pname = "rokuecp";
  version = "0.19.2";
  format = "pyproject";
  version = "0.19.3";
  pyproject = true;

  disabled = pythonOlder "3.9";

@@ -26,14 +27,18 @@ buildPythonPackage rec {
    owner = "ctalkington";
    repo = "python-rokuecp";
    rev = "refs/tags/${version}";
    hash = "sha256-L6uedckc2lEQ6CUlQGEyDhnuVsxRRgDQJUEsZTfm2sU=";
    hash = "sha256-XMJ2V59E4SEVlEhgc1hstLmtzl1gxwCsq+4vmkL3CPM=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"' \
      --replace-fail "--cov" ""
  '';

  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    backoff
    cachetools
@@ -49,12 +54,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'version = "0.0.0"' 'version = "${version}"' \
      --replace "--cov" ""
  '';

  disabledTests = [
    # Network related tests are having troube in the sandbox
    "test_resolve_hostname"
@@ -66,9 +65,7 @@ buildPythonPackage rec {
    "test_get_tv_channels_single_channel"
  ];

  pythonImportsCheck = [
    "rokuecp"
  ];
  pythonImportsCheck = [ "rokuecp" ];

  meta = with lib; {
    description = "Asynchronous Python client for Roku (ECP)";