Merge pull request #312726 from fabaff/openhomedevice-bump

python311Packages.openhomedevice: refactor
This commit is contained in:
Fabian Affolter 2024-05-19 10:21:34 +02:00 committed by GitHub
commit 29f127fa99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,28 +1,32 @@
{ 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";