3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #242335 from onny/semaphore

python3Packages.semaphore-bot: init at 0.16.0
This commit is contained in:
Jonas Heinrich 2023-07-14 22:00:12 +02:00 committed by GitHub
commit d6a0c807d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ 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 ];
};
}

View file

@ -11287,6 +11287,8 @@ self: super: with self; {
semantic-version = callPackage ../development/python-modules/semantic-version { };
semaphore-bot = callPackage ../development/python-modules/semaphore-bot { };
semver = callPackage ../development/python-modules/semver { };
send2trash = callPackage ../development/python-modules/send2trash { };