1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytest-cov-stub,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "aiostream";
15 version = "0.7.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "vxgmichel";
22 repo = "aiostream";
23 tag = "v${version}";
24 hash = "sha256-oOx1LG3UyMJRm/HvmrHT00jTp3+XzmvS2XRH4BJNyPE=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [ typing-extensions ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytest-cov-stub
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "aiostream" ];
38
39 meta = with lib; {
40 description = "Generator-based operators for asynchronous iteration";
41 homepage = "https://aiostream.readthedocs.io";
42 changelog = "https://github.com/vxgmichel/aiostream/releases/tag/${src.tag}";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ rmcgibbo ];
45 };
46}