python3Packages.asyncio-throttle: init at 1.0.1
This commit is contained in:
parent
13d1db923c
commit
e364d10db5
34
pkgs/development/python-modules/asyncio-throttle/default.nix
Normal file
34
pkgs/development/python-modules/asyncio-throttle/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user