nixpkgs-suyu/pkgs/development/python-modules/nest-asyncio/default.nix
2021-04-03 17:48:41 +02:00

28 lines
756 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
}:
buildPythonPackage rec {
version = "1.5.1";
pname = "nest_asyncio";
disabled = !(pythonAtLeast "3.5");
src = fetchPypi {
inherit pname version;
sha256 = "afc5a1c515210a23c461932765691ad39e8eba6551c055ac8d5546e69250d0aa";
};
# 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 ];
};
}