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