1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 pythonOlder,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "aiostream";
13 version = "0.5.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "vxgmichel";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-g2W2TtCh2ANPjeTdASVgEu+qKfz/Ugh1rDWJcFvOJpI=";
23 };
24
25 postPatch = ''
26 substituteInPlace setup.cfg \
27 --replace " --cov aiostream --cov-report html --cov-report term" ""
28 '';
29
30 propagatedBuildInputs = [ typing-extensions ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
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/v${version}";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ rmcgibbo ];
45 };
46}