nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 58 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, ifaddr 6, lxml 7, poetry-core 8, pytest-vcr 9, pytestCheckHook 10, pythonOlder 11, requests 12, urllib3 13}: 14 15buildPythonPackage rec { 16 pname = "pywemo"; 17 version = "0.6.4"; 18 format = "pyproject"; 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = pname; 23 repo = pname; 24 rev = version; 25 sha256 = "1hm1vs6m65vqar0lcjnynz0d9y9ri5s75fzhvp0yfjkcnp06gnfa"; 26 }; 27 28 patches = [ 29 (fetchpatch { 30 # https://github.com/pywemo/pywemo/issues/264 31 url = "https://github.com/pywemo/pywemo/commit/4fd7af8ccc7cb2412f61d5e04b79f83c9ca4753c.patch"; 32 sha256 = "1x0rm5dxr0z5llmv446bx3i1wvgcfhx22zn78qblcr0m4yv3mif4"; 33 }) 34 ]; 35 36 nativeBuildInputs = [ poetry-core ]; 37 38 propagatedBuildInputs = [ 39 ifaddr 40 requests 41 urllib3 42 lxml 43 ]; 44 45 checkInputs = [ 46 pytest-vcr 47 pytestCheckHook 48 ]; 49 50 pythonImportsCheck = [ "pywemo" ]; 51 52 meta = with lib; { 53 description = "Python module to discover and control WeMo devices"; 54 homepage = "https://github.com/pywemo/pywemo"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}