about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/openhomedevice/default.nix
blob: 625980b3b9db3ad52433c635c49d7f77b6e440b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 ];
  };
}