forked from mirrors/nixpkgs
Merge pull request #242335 from onny/semaphore
python3Packages.semaphore-bot: init at 0.16.0
This commit is contained in:
commit
d6a0c807d8
40
pkgs/development/python-modules/semaphore-bot/default.nix
Normal file
40
pkgs/development/python-modules/semaphore-bot/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue