41 lines
809 B
Nix
41 lines
809 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, python-dateutil
|
||
|
, attrs
|
||
|
, anyio
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "semaphore-bot";
|
||
|
version = "0.16.0";
|
||
|
format = "setuptools";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit version pname;
|
||
|
hash = "sha256-EOUvzW4a8CgyQSxb2fXnIWfOYs5Xe0v794vDIruSHmI=";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|