1{ lib 2, asynctest 3, bleak 4, click 5, buildPythonPackage 6, fetchFromGitHub 7, pytest-asyncio 8, pytest-mock 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "pyzerproc"; 15 version = "0.4.9"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "emlove"; 20 repo = pname; 21 rev = version; 22 sha256 = "11bsvmvazx9gpj0w80b6wgdp41z8y2sk6bhkj3ps7grsgr59n7rz"; 23 }; 24 25 postPatch = '' 26 sed -i "/--cov/d" setup.cfg 27 ''; 28 29 propagatedBuildInputs = [ 30 bleak 31 click 32 ]; 33 34 checkInputs = [ 35 pytest-asyncio 36 pytest-mock 37 pytestCheckHook 38 ] ++ lib.optionals (pythonOlder "3.8") [ 39 asynctest 40 ]; 41 42 pythonImportsCheck = [ "pyzerproc" ]; 43 44 meta = with lib; { 45 description = "Python library to control Zerproc Bluetooth LED smart string lights"; 46 homepage = "https://github.com/emlove/pyzerproc"; 47 license = with licenses; [ asl20 ]; 48 maintainers = with maintainers; [ fab ]; 49 platforms = platforms.linux; 50 }; 51}