1{ lib
2, async-upnp-client
3, buildPythonPackage
4, fetchFromGitHub
5, lxml
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "openhomedevice";
11 version = "2.0.1";
12 disabled = pythonOlder "3.5";
13
14 src = fetchFromGitHub {
15 owner = "bazwilliams";
16 repo = pname;
17 rev = version;
18 sha256 = "sha256-BQgwXg15+xEGfPm0HJWpKXbNuCgc0VcAD5AuVSDXd8g=";
19 };
20
21 propagatedBuildInputs = [
22 async-upnp-client
23 lxml
24 ];
25
26 # Tests are currently outdated
27 # https://github.com/bazwilliams/openhomedevice/issues/20
28 doCheck = false;
29 pythonImportsCheck = [ "openhomedevice" ];
30
31 meta = with lib; {
32 description = "Python module to access Linn Ds and Openhome devices";
33 homepage = "https://github.com/bazwilliams/openhomedevice";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}