at master 953 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pilight"; 11 version = "0.1.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "DavidLP"; 16 repo = "pilight"; 17 tag = version; 18 hash = "sha256-8KLEeyf1uwYjsBfIoi+736cu+We6OjLvptCXL539bDA="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 postPatch = '' 26 substituteInPlace pilight/test/test_client.py \ 27 --replace-fail "from mock import patch, call" "from unittest.mock import patch, call" \ 28 --replace-fail "pilight_client.isAlive()" "pilight_client.is_alive()" 29 ''; 30 31 pythonImportsCheck = [ "pilight" ]; 32 33 meta = { 34 description = "Pure python module to connect to a pilight daemon to send and receive commands"; 35 homepage = "https://github.com/DavidLP/pilight"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.jamiemagee ]; 38 }; 39}