3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pywemo/default.nix
2022-02-09 21:43:38 -08:00

55 lines
885 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, lxml
, poetry-core
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "pywemo";
version = "0.8.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
hash = "sha256-bGoqhrjoRKUGPBNfmr2XP+1HL5mdRi6XoCi0BdvY9x8=";
};
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 ];
};
}