diff --git a/pkgs/development/python-modules/semaphore-bot/default.nix b/pkgs/development/python-modules/semaphore-bot/default.nix new file mode 100644 index 000000000000..7725b48adac4 --- /dev/null +++ b/pkgs/development/python-modules/semaphore-bot/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b2fe97d01705..67b32499c3f1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11231,6 +11231,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 { };