python3Packages.asyncio-throttle: init at 1.0.1

This commit is contained in:
Martin Weinelt 2020-10-04 01:44:16 +02:00
parent 13d1db923c
commit e364d10db5
No known key found for this signature in database
GPG key ID: BD4AA0528F63F17E
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "asyncio-throttle";
version = "1.0.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hallazzang";
repo = pname;
rev = "v${version}";
sha256 = "0raqnrnp42cn1c7whbm7ajbgaczx33k6hbxsj30nh998pqxhh4sj";
};
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "asyncio_throttle" ];
meta = with lib; {
description = "Simple, easy-to-use throttler for asyncio";
homepage = "https://github.com/hallazzang/asyncio-throttle";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -426,6 +426,8 @@ in {
async_generator = callPackage ../development/python-modules/async_generator { };
asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };
asyncpg = callPackage ../development/python-modules/asyncpg { };
asyncssh = callPackage ../development/python-modules/asyncssh { };