1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/python-modules/asyncio-throttle/default.nix
2021-04-13 17:44:49 +02:00

35 lines
718 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "asyncio-throttle";
version = "1.0.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hallazzang";
repo = pname;
rev = "v${version}";
sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv";
};
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 ];
};
}