2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
tornado,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "threadloop";
|
|
|
|
version = "1.0.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ tornado ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
doCheck = false; # ImportError: cannot import name 'ThreadLoop' from 'threadloop'
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "threadloop" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library to run tornado coroutines from synchronous Python";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/GoodPete/threadloop";
|
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|