1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5}: 6 7buildPythonPackage rec { 8 version = "1.5.6"; 9 pname = "nest_asyncio"; 10 disabled = !(pythonAtLeast "3.5"); 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-0mfMH/eUQD999pKWTR0qP6lBj/6io/aFmkOf9IL+8pA="; 15 }; 16 17 # tests not packaged with source dist as of 1.3.2/1.3.2, and 18 # can't check tests out of GitHub easily without specific commit IDs (no tagged releases) 19 doCheck = false; 20 pythonImportsCheck = [ "nest_asyncio" ]; 21 22 meta = with lib; { 23 description = "Patch asyncio to allow nested event loops"; 24 homepage = "https://github.com/erdewit/nest_asyncio"; 25 license = licenses.bsdOriginal; 26 maintainers = with maintainers; [ ]; 27 }; 28}