29 lines
756 B
Nix
Raw Normal View History

2020-01-29 13:26:46 -05:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
}:
buildPythonPackage rec {
2019-12-10 19:07:40 +01:00
version = "1.2.1";
pname = "nest_asyncio";
disabled = !(pythonAtLeast "3.5");
src = fetchPypi {
inherit pname version;
2019-12-10 19:07:40 +01:00
sha256 = "7d4d7c1ca2aad0e5c2706d0222c8ff006805abfd05caa97e6127c8811d0f6adc";
};
# tests not packaged with source dist as of 1.2.1/1.2.2, and
# can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
doCheck = false;
pythonImportsCheck = [ "nest_asyncio" ];
2020-01-29 13:26:46 -05:00
meta = with lib; {
description = "Patch asyncio to allow nested event loops";
2020-01-29 13:26:46 -05:00
homepage = "https://github.com/erdewit/nest_asyncio";
license = licenses.bsdOriginal;
2020-01-29 13:26:46 -05:00
maintainers = with maintainers; [ costrouc ];
};
}