Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 982 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, ifaddr 5, lxml 6, poetry-core 7, pytest-vcr 8, pytestCheckHook 9, pythonOlder 10, requests 11, urllib3 12}: 13 14buildPythonPackage rec { 15 pname = "pywemo"; 16 version = "0.9.2"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = pname; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-mrLZ8W7imM/ysJhd4OcqZFzx2z/KG8k5bOPFb4ldYzE="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 ifaddr 34 requests 35 urllib3 36 lxml 37 ]; 38 39 nativeCheckInputs = [ 40 pytest-vcr 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ 45 "pywemo" 46 ]; 47 48 meta = with lib; { 49 description = "Python module to discover and control WeMo devices"; 50 homepage = "https://github.com/pywemo/pywemo"; 51 changelog = "https://github.com/pywemo/pywemo/releases/tag/${version}"; 52 license = with licenses; [ mit ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}