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