1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "async-generator";
10 version = "1.10";
11
12 disabled = pythonOlder "3.5";
13
14 src = fetchPypi {
15 pname = "async_generator";
16 inherit version;
17 sha256 = "6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "async_generator" ];
25
26 meta = with lib; {
27 description = "Async generators and context managers for Python 3.5+";
28 homepage = "https://github.com/python-trio/async_generator";
29 license = with licenses; [ mit asl20 ];
30 maintainers = with maintainers; [ dotlambda ];
31 };
32}