nixpkgs/pkgs/development/python-modules/stopit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
756 B
Nix
Raw Normal View History

2021-06-22 21:17:43 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
2021-06-22 21:17:43 +00:00
}:
buildPythonPackage rec {
pname = "stopit";
version = "1.1.2";
# tests are missing from the PyPi tarball
src = fetchFromGitHub {
owner = "glenfant";
repo = pname;
rev = version;
hash = "sha256-uXJUA70JOGWT2NmS6S7fPrTWAJZ0mZ/hICahIUzjfbw=";
2021-06-22 21:17:43 +00:00
};
propagatedBuildInputs = [
setuptools # for pkg_resources
];
2021-06-22 21:17:43 +00:00
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 ];
};
}