python3Packages.threadloop: init 1.0.2

conduit-nginx
superherointj 2021-09-02 12:10:38 -03:00
parent 967d7610a0
commit f5a5a3e95c
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ buildPythonPackage
, fetchPypi
, lib
, tornado
}:
buildPythonPackage rec {
pname = "threadloop";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944";
};
propagatedBuildInputs = [
tornado
];
doCheck = false; # ImportError: cannot import name 'ThreadLoop' from 'threadloop'
pythonImportsCheck = [ "threadloop" ];
meta = with lib; {
description = "A library to run tornado coroutines from synchronous Python";
homepage = "https://github.com/GoodPete/threadloop";
license = licenses.mit;
maintainers = with maintainers; [ superherointj ];
};
}

View File

@ -9122,6 +9122,8 @@ in {
inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate CoreFoundation CoreGraphics CoreVideo;
};
threadloop = callPackage ../development/python-modules/threadloop { };
threadpool = callPackage ../development/python-modules/threadpool { };
threadpoolctl = callPackage ../development/python-modules/threadpoolctl { };