python3Packages.openhomedevice: init at 1.0.0

This commit is contained in:
Fabian Affolter 2021-04-04 11:11:03 +02:00
parent d6a67759e7
commit 048cff368a
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ 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 ];
};
}

View file

@ -4802,6 +4802,8 @@ in {
pythonPackages = self;
}));
openhomedevice = callPackage ../development/python-modules/openhomedevice { };
openidc-client = callPackage ../development/python-modules/openidc-client { };
openpyxl = if pythonAtLeast "3.6" then