0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
28 lines
743 B
Nix
28 lines
743 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.5.6";
|
|
pname = "nest_asyncio";
|
|
disabled = !(pythonAtLeast "3.5");
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-0mfMH/eUQD999pKWTR0qP6lBj/6io/aFmkOf9IL+8pA=";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|