1{ lib
2, aioresponses
3, async-upnp-client
4, buildPythonPackage
5, fetchFromGitHub
6, lxml
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "openhomedevice";
13 version = "2.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.5";
17
18 src = fetchFromGitHub {
19 owner = "bazwilliams";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-GGp7nKFH01m1KW6yMkKlAdd26bDi8JDWva6OQ0CWMIw=";
23 };
24
25 propagatedBuildInputs = [
26 async-upnp-client
27 lxml
28 ];
29
30 nativeCheckInputs = [
31 aioresponses
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "openhomedevice"
37 ];
38
39 pytestFlagsArray = [
40 "tests/*.py"
41 ];
42
43 meta = with lib; {
44 description = "Python module to access Linn Ds and Openhome devices";
45 homepage = "https://github.com/bazwilliams/openhomedevice";
46 changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}