2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aioresponses,
|
|
|
|
async-upnp-client,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lxml,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-04-08 16:26:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openhomedevice";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.2";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazwilliams";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "openhomedevice";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-GGp7nKFH01m1KW6yMkKlAdd26bDi8JDWva6OQ0CWMIw=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-04-08 16:26:57 +00:00
|
|
|
async-upnp-client
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "openhomedevice" ];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "tests/*.py" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to access Linn Ds and Openhome devices";
|
|
|
|
homepage = "https://github.com/bazwilliams/openhomedevice";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|