Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 34 lines 852 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, pbr, six, futures, monotonic 3, pytest, sphinx, tornado 4}: 5 6buildPythonPackage rec { 7 pname = "tenacity"; 8 version = "5.0.4"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "06sp12cn8zcb7rqklq91f6mxhvrdq5cs0p3pdiazacqcmvvwbhx0"; 13 }; 14 15 nativeBuildInputs = [ pbr ]; 16 propagatedBuildInputs = [ six ] 17 ++ lib.optionals isPy27 [ futures monotonic ]; 18 19 checkInputs = [ pytest sphinx tornado ]; 20 checkPhase = (if isPy27 then '' 21 pytest --ignore='tenacity/tests/test_asyncio.py' 22 '' else '' 23 pytest 24 '') + '' 25 sphinx-build -a -E -W -b doctest doc/source doc/build 26 ''; 27 28 meta = with lib; { 29 homepage = https://github.com/jd/tenacity; 30 description = "Retrying library for Python"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ jakewaksbaum ]; 33 }; 34}