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
31 lines
702 B
Nix
31 lines
702 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "func-timeout";
|
|
version = "4.3.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "func_timeout";
|
|
inherit version;
|
|
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "func_timeout" ];
|
|
|
|
meta = with lib; {
|
|
description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads";
|
|
homepage = "https://github.com/kata198/func_timeout";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|