2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python-dateutil
|
|
|
|
, attrs
|
|
|
|
, anyio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "semaphore-bot";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.17.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-3zb6+HdOB6+YrVRcmIHsokFKUOlFmKCoVNllvM+aOXQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "anyio>=3.5.0,<=3.6.2" "anyio"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
anyio
|
|
|
|
attrs
|
|
|
|
python-dateutil
|
|
|
|
];
|
|
|
|
|
|
|
|
# Upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "semaphore" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple rule-based bot library for Signal Private Messenger";
|
|
|
|
homepage = "https://github.com/lwesterhof/semaphore";
|
|
|
|
license = with licenses; [ agpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|