nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-asyncio,
7}:
8
9buildPythonPackage rec {
10 pname = "asyncio-throttle";
11 version = "1.0.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "hallazzang";
16 repo = "asyncio-throttle";
17 rev = "v${version}";
18 sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv";
19 };
20
21 nativeCheckInputs = [
22 pytest-asyncio
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [ "asyncio_throttle" ];
27
28 meta = {
29 description = "Simple, easy-to-use throttler for asyncio";
30 homepage = "https://github.com/hallazzang/asyncio-throttle";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ hexa ];
33 };
34}