depot/third_party/nixpkgs/pkgs/development/python-modules/stopit/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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 ];
};
}