1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "nest-asyncio";
13 version = "1.6.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "erdewit";
20 repo = "nest_asyncio";
21 tag = "v${version}";
22 hash = "sha256-5I5WItOl1QpyI4OXZgZf8GiQ7Jlo+SJbDicIbernaU4=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "nest_asyncio" ];
33
34 meta = with lib; {
35 description = "Patch asyncio to allow nested event loops";
36 homepage = "https://github.com/erdewit/nest_asyncio";
37 changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
38 license = licenses.bsdOriginal;
39 maintainers = [ ];
40 };
41}