849ee4d900
GitOrigin-RevId: 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2
37 lines
834 B
Nix
37 lines
834 B
Nix
{ lib
|
|
, async-upnp-client
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openhomedevice";
|
|
version = "1.0.0";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazwilliams";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "04qdlyzc8xsk7qxyn9l59pbwnlw49zknw0r5lqwx402va12g4ra0";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|