2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, async-upnp-client
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openhomedevice";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazwilliams";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-D4n/fv+tgdKiU7CemI+12cqoox2hsqRYlCHY7daD5fM=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-upnp-client
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are currently outdated
|
|
|
|
# https://github.com/bazwilliams/openhomedevice/issues/20
|
|
|
|
doCheck = false;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"openhomedevice"
|
|
|
|
];
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|