python: tenacity: 5.0.4 -> 5.1.1

This commit is contained in:
Frederik Rietdijk 2019-10-24 08:47:50 +02:00
parent f6f0218fc2
commit 9210a5f609

View File

@ -1,28 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 { lib, buildPythonPackage, fetchPypi, isPy27
, pbr, six, futures, monotonic , pbr, six, futures, monotonic, setuptools_scm
, pytest, sphinx, tornado , pytest, sphinx, tornado
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tenacity"; pname = "tenacity";
version = "5.0.4"; version = "5.1.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "06sp12cn8zcb7rqklq91f6mxhvrdq5cs0p3pdiazacqcmvvwbhx0"; sha256 = "a4eb168dbf55ed2cae27e7c6b2bd48ab54dabaf294177d998330cf59f294c112";
}; };
nativeBuildInputs = [ pbr ]; nativeBuildInputs = [ pbr setuptools_scm ];
propagatedBuildInputs = [ six ] propagatedBuildInputs = [ six ]
++ lib.optionals isPy27 [ futures monotonic ]; ++ lib.optionals isPy27 [ futures monotonic ];
checkInputs = [ pytest sphinx tornado ]; checkInputs = [ pytest sphinx tornado ];
checkPhase = (if isPy27 then '' checkPhase = if isPy27 then ''
pytest --ignore='tenacity/tests/test_asyncio.py' pytest --ignore='tenacity/tests/test_asyncio.py'
'' else '' '' else ''
pytest pytest
'') + ''
sphinx-build -a -E -W -b doctest doc/source doc/build
''; '';
meta = with lib; { meta = with lib; {