1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/development/python-modules/tenacity/default.nix
R. RyanTM 238712d20b python37Packages.tenacity: 5.0.3 -> 5.0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-tenacity/versions
2019-04-16 18:32:49 +02:00

35 lines
852 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, pbr, six, futures, monotonic
, pytest, sphinx, tornado
}:
buildPythonPackage rec {
pname = "tenacity";
version = "5.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "06sp12cn8zcb7rqklq91f6mxhvrdq5cs0p3pdiazacqcmvvwbhx0";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ six ]
++ lib.optionals isPy27 [ futures monotonic ];
checkInputs = [ pytest sphinx tornado ];
checkPhase = (if isPy27 then ''
pytest --ignore='tenacity/tests/test_asyncio.py'
'' else ''
pytest
'') + ''
sphinx-build -a -E -W -b doctest doc/source doc/build
'';
meta = with lib; {
homepage = https://github.com/jd/tenacity;
description = "Retrying library for Python";
license = licenses.asl20;
maintainers = with maintainers; [ jakewaksbaum ];
};
}