depot/third_party/nixpkgs/pkgs/development/python-modules/stopit/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
781 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 ];
};
}