2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
2023-07-15 17:15:38 +00:00
|
|
|
, aioresponses
|
2021-04-08 16:26:57 +00:00
|
|
|
, async-upnp-client
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
2023-07-15 17:15:38 +00:00
|
|
|
, pytestCheckHook
|
2021-04-08 16:26:57 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openhomedevice";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.2";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazwilliams";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-GGp7nKFH01m1KW6yMkKlAdd26bDi8JDWva6OQ0CWMIw=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-upnp-client
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"openhomedevice"
|
|
|
|
];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/*.py"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|