2021-04-04 10:11:03 +01:00
|
|
|
{ lib
|
|
|
|
, async-upnp-client
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openhomedevice";
|
2021-05-07 10:52:44 +01:00
|
|
|
version = "2.0.1";
|
2021-04-04 10:11:03 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazwilliams";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-07 10:52:44 +01:00
|
|
|
sha256 = "sha256-BQgwXg15+xEGfPm0HJWpKXbNuCgc0VcAD5AuVSDXd8g=";
|
2021-04-04 10:11:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-upnp-client
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are currently outdated
|
|
|
|
# https://github.com/bazwilliams/openhomedevice/issues/20
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "openhomedevice" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|