2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonAtLeast
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.5.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nest_asyncio";
|
|
|
|
disabled = !(pythonAtLeast "3.5");
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-0mfMH/eUQD999pKWTR0qP6lBj/6io/aFmkOf9IL+8pA=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|