nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "async-generator";
11 version = "1.10";
12 format = "setuptools";
13
14 src = fetchPypi {
15 pname = "async_generator";
16 inherit version;
17 hash = "sha256-brs9EGwSkgqq5CzLb3h+9e79zdFm6j1ij6hHar5xIUQ=";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_aclose_on_unstarted_generator" ];
23
24 pythonImportsCheck = [ "async_generator" ];
25
26 meta = {
27 description = "Async generators and context managers for Python 3.5+";
28 homepage = "https://github.com/python-trio/async_generator";
29 license = with lib.licenses; [
30 mit
31 asl20
32 ];
33 maintainers = with lib.maintainers; [ dotlambda ];
34 };
35}