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