summary refs log blame commit diff
path: root/pkgs/development/python-modules/openhomedevice/default.nix
blob: 57c0182abd780ee99bee710e2df2d88f321a10b1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                           
                    





                               
                                                                   


















                                                                         
{ lib
, async-upnp-client
, buildPythonPackage
, fetchFromGitHub
, lxml
, pythonOlder
}:

buildPythonPackage rec {
  pname = "openhomedevice";
  version = "2.0.1";
  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "bazwilliams";
    repo = pname;
    rev = version;
    sha256 = "sha256-BQgwXg15+xEGfPm0HJWpKXbNuCgc0VcAD5AuVSDXd8g=";
  };

  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 ];
  };
}