2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonAtLeast
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nest_asyncio";
|
|
|
|
disabled = !(pythonAtLeast "3.5");
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "c614fcfaca72b1f04778bc0e73f49c84500b3d045c49d149fc46f1566643c175";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests not packaged with source dist as of 1.3.2/1.3.2, and
|
|
|
|
# can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nest_asyncio" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Patch asyncio to allow nested event loops";
|
|
|
|
homepage = "https://github.com/erdewit/nest_asyncio";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|