1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonAtLeast
5}:
6
7buildPythonPackage rec {
8 version = "1.5.5";
9 pname = "nest_asyncio";
10 disabled = !(pythonAtLeast "3.5");
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-5EIpHNlCaYvmGYI6F6hqV1nqvh+GEwhHkN4Yn+nhbWU=";
15 };
16
17 # tests not packaged with source dist as of 1.3.2/1.3.2, and
18 # can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
19 doCheck = false;
20 pythonImportsCheck = [ "nest_asyncio" ];
21
22 meta = with lib; {
23 description = "Patch asyncio to allow nested event loops";
24 homepage = "https://github.com/erdewit/nest_asyncio";
25 license = licenses.bsdOriginal;
26 maintainers = with maintainers; [ costrouc ];
27 };
28}