Unverified Commit 29f127fa authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #312726 from fabaff/openhomedevice-bump

python311Packages.openhomedevice: refactor
parents 6058cbf0 3156917d
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
{ lib
, aioresponses
, async-upnp-client
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytestCheckHook
, pythonOlder
{
  lib,
  aioresponses,
  async-upnp-client,
  buildPythonPackage,
  fetchFromGitHub,
  lxml,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "openhomedevice";
  version = "2.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.5";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "bazwilliams";
    repo = pname;
    repo = "openhomedevice";
    rev = "refs/tags/${version}";
    hash = "sha256-GGp7nKFH01m1KW6yMkKlAdd26bDi8JDWva6OQ0CWMIw=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    async-upnp-client
    lxml
  ];
@@ -32,13 +36,9 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "openhomedevice"
  ];
  pythonImportsCheck = [ "openhomedevice" ];

  pytestFlagsArray = [
    "tests/*.py"
  ];
  pytestFlagsArray = [ "tests/*.py" ];

  meta = with lib; {
    description = "Python module to access Linn Ds and Openhome devices";