bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
42 lines
864 B
Nix
42 lines
864 B
Nix
{ lib
|
|
, async-upnp-client
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openhomedevice";
|
|
version = "2.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazwilliams";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-D4n/fv+tgdKiU7CemI+12cqoox2hsqRYlCHY7daD5fM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|