linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / asyncio-throttle / default.nix
blob38f3389aa60eb779a993cec2c5b8729fcf3892fa
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , pytest-asyncio
7 }:
9 buildPythonPackage rec {
10   pname = "asyncio-throttle";
11   version = "1.0.2";
12   disabled = pythonOlder "3.6";
14   src = fetchFromGitHub {
15     owner = "hallazzang";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv";
19   };
21   checkInputs = [
22     pytest-asyncio
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [ "asyncio_throttle" ];
28   meta = with lib; {
29     description = "Simple, easy-to-use throttler for asyncio";
30     homepage = "https://github.com/hallazzang/asyncio-throttle";
31     license = licenses.mit;
32     maintainers = with maintainers; [ hexa ];
33   };