2020-01-29 10:26:46 -08:00
|
|
|
{ lib
|
2018-09-20 12:57:05 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonAtLeast
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-10-25 02:06:53 -07:00
|
|
|
version = "1.4.1";
|
2018-09-20 12:57:05 -07:00
|
|
|
pname = "nest_asyncio";
|
|
|
|
disabled = !(pythonAtLeast "3.5");
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 02:06:53 -07:00
|
|
|
sha256 = "b86c3193abda5b2eeccf8c79894bc71c680369a178f4b068514ac00720b14e01";
|
2018-09-20 12:57:05 -07:00
|
|
|
};
|
|
|
|
|
2020-04-06 23:19:48 -07:00
|
|
|
# tests not packaged with source dist as of 1.3.2/1.3.2, and
|
2020-01-21 13:10:28 -08:00
|
|
|
# can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nest_asyncio" ];
|
|
|
|
|
2020-01-29 10:26:46 -08:00
|
|
|
meta = with lib; {
|
2018-09-20 12:57:05 -07:00
|
|
|
description = "Patch asyncio to allow nested event loops";
|
2020-01-29 10:26:46 -08:00
|
|
|
homepage = "https://github.com/erdewit/nest_asyncio";
|
2018-09-20 12:57:05 -07:00
|
|
|
license = licenses.bsdOriginal;
|
2020-01-29 10:26:46 -08:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-09-20 12:57:05 -07:00
|
|
|
};
|
|
|
|
}
|