Merge pull request #150604 from dotlambda/ircrobots-0.4.6

This commit is contained in:
Martin Weinelt 2021-12-14 00:29:26 +01:00 committed by GitHub
commit bdfb8cf971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 2 deletions

View file

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "asyncio-rlock";
version = "0.1.0";
src = fetchPypi {
pname = "asyncio_rlock";
inherit version;
sha256 = "7e29824331619873e10d5d99dcc46d7b8f196c4a11b203f4eeccc0c091039d43";
};
# no tests on PyPI, no tags on GitLab
doCheck = false;
pythonImportsCheck = [ "asyncio_rlock" ];
meta = with lib; {
description = "Rlock like in threading module but for asyncio";
homepage = "https://gitlab.com/heckad/asyncio_rlock";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, pythonOlder
, anyio
, asyncio-rlock
, asyncio-throttle
, dataclasses
, ircstates
@ -13,23 +14,26 @@
buildPythonPackage rec {
pname = "ircrobots";
version = "0.3.8";
version = "0.4.6";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jesopo";
repo = pname;
rev = "v${version}";
sha256 = "06q86dqllxvi3nssfplmjk9yxaybighwh87lrxfpfhl8yy4z68jz";
sha256 = "sha256-+BrS1+ZkgwT/qvqD0PwRZi2LF+31biS738SzKH1dy7w=";
};
postPatch = ''
# too specific pins https://github.com/jesopo/ircrobots/issues/3
sed -iE 's/anyio.*/anyio/' requirements.txt
sed -iE 's/ircstates.*/ircstates/' requirements.txt
sed -iE 's/async_timeout.*/async_timeout/' requirements.txt
'';
propagatedBuildInputs = [
anyio
asyncio-rlock
asyncio-throttle
ircstates
async_stagger

View file

@ -671,6 +671,8 @@ in {
asyncio-nats-client = callPackage ../development/python-modules/asyncio-nats-client { };
asyncio-rlock = callPackage ../development/python-modules/asyncio-rlock { };
asyncmy = callPackage ../development/python-modules/asyncmy { };
asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };