8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
28 lines
744 B
Nix
28 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.3.2";
|
|
pname = "nest_asyncio";
|
|
disabled = !(pythonAtLeast "3.5");
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0l43k0lx7r6izancfhhg68x82mvws2di1a9w2y12l1a446vr9q8l";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|