893b09d324
GitOrigin-RevId: eac07edbd20ed4908b98790ba299250b5527ecdf
54 lines
887 B
Nix
54 lines
887 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ifaddr
|
|
, lxml
|
|
, poetry-core
|
|
, pytest-vcr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywemo";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-NwhKrk5cQT7kk4VCr0BMQz0yTP/vuBA6MjTRuk2LM5Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ifaddr
|
|
requests
|
|
urllib3
|
|
lxml
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pywemo"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to discover and control WeMo devices";
|
|
homepage = "https://github.com/pywemo/pywemo";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|