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