02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
33 lines
781 B
Nix
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 ];
|
|
};
|
|
}
|