49 lines
842 B
Nix
49 lines
842 B
Nix
{
|
|
# nix build inputs
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
# deps
|
|
pbr,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
tornado,
|
|
typeguard,
|
|
...
|
|
}: let
|
|
pname = "tenacity";
|
|
version = "8.2.3";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-U5jvDXjmP0AAfB+0wL/5bhkROU0vqNGU93YZwF/2zIo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
tornado
|
|
typeguard
|
|
];
|
|
|
|
pythonImportsCheck = [pname];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jd/tenacity";
|
|
description = "Retrying library for Python";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|