1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python-dateutil, 6 attrs, 7 anyio, 8}: 9 10buildPythonPackage rec { 11 pname = "semaphore-bot"; 12 version = "0.17.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit version pname; 17 hash = "sha256-3zb6+HdOB6+YrVRcmIHsokFKUOlFmKCoVNllvM+aOXQ="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py --replace "anyio>=3.5.0,<=3.6.2" "anyio" 22 ''; 23 24 propagatedBuildInputs = [ 25 anyio 26 attrs 27 python-dateutil 28 ]; 29 30 # Upstream has no tests 31 doCheck = false; 32 33 pythonImportsCheck = [ "semaphore" ]; 34 35 meta = with lib; { 36 description = "Simple rule-based bot library for Signal Private Messenger"; 37 homepage = "https://github.com/lwesterhof/semaphore"; 38 license = with licenses; [ agpl3Plus ]; 39 maintainers = with maintainers; [ onny ]; 40 }; 41}