d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
32 lines
687 B
Nix
32 lines
687 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "async-generator";
|
|
version = "1.10";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
pname = "async_generator";
|
|
inherit version;
|
|
hash = "sha256-brs9EGwSkgqq5CzLb3h+9e79zdFm6j1ij6hHar5xIUQ=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "async_generator" ];
|
|
|
|
meta = with lib; {
|
|
description = "Async generators and context managers for Python 3.5+";
|
|
homepage = "https://github.com/python-trio/async_generator";
|
|
license = with licenses; [ mit asl20 ];
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|