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