2022-02-09 23:53:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2023-12-06 19:35:38 +01:00
|
|
|
pythonAtLeast,
|
2022-02-09 23:53:15 +00:00
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
2018-04-04 19:20:32 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-13 20:47:40 -08:00
|
|
|
pname = "async-generator";
|
2018-08-13 09:22:13 +02:00
|
|
|
version = "1.10";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2018-04-04 19:20:32 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-01-13 20:47:40 -08:00
|
|
|
pname = "async_generator";
|
|
|
|
inherit version;
|
2023-08-08 21:08:11 -07:00
|
|
|
hash = "sha256-brs9EGwSkgqq5CzLb3h+9e79zdFm6j1ij6hHar5xIUQ=";
|
2018-04-04 19:20:32 +02:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2018-04-04 19:20:32 +02:00
|
|
|
|
2023-12-06 19:35:38 +01:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_aclose_on_unstarted_generator" ];
|
|
|
|
|
2022-02-09 23:53:15 +00:00
|
|
|
pythonImportsCheck = [ "async_generator" ];
|
2018-04-04 19:20:32 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Async generators and context managers for Python 3.5+";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/python-trio/async_generator";
|
2018-04-04 19:20:32 +02:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
asl20
|
|
|
|
];
|
2022-02-09 23:53:15 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-04-04 19:20:32 +02:00
|
|
|
};
|
|
|
|
}
|