blob: 4569b1ba88e2af637bbaafc1c527f66efa7605c2 (
plain) (
blame)
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 = pname;
rev = version;
hash = "sha256-uXJUA70JOGWT2NmS6S7fPrTWAJZ0mZ/hICahIUzjfbw=";
};
propagatedBuildInputs = [
setuptools # for pkg_resources
];
pythonImportsCheck = [ "stopit" ];
meta = with lib; {
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 licenses; [ mit ];
maintainers = with maintainers; [ veprbl ];
};
}
|