fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
34 lines
787 B
Nix
34 lines
787 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|