1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4}: 5 6buildPythonPackage rec { 7 pname = "stopit"; 8 version = "1.1.2"; 9 10 # tests are missing from the PyPi tarball 11 src = fetchFromGitHub { 12 owner = "glenfant"; 13 repo = pname; 14 rev = version; 15 sha256 = "sha256-uXJUA70JOGWT2NmS6S7fPrTWAJZ0mZ/hICahIUzjfbw="; 16 }; 17 18 pythonImportsCheck = [ "stopit" ]; 19 20 meta = with lib; { 21 description = "Raise asynchronous exceptions in other thread, control the timeout of blocks or callables with a context manager or a decorator"; 22 homepage = "https://github.com/glenfant/stopit"; 23 license = with licenses; [ mit ]; 24 maintainers = with maintainers; [ veprbl ]; 25 }; 26}