3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tenacity/default.nix

33 lines
825 B
Nix
Raw Normal View History

2019-01-10 17:14:54 +00:00
{ lib, buildPythonPackage, fetchPypi, isPy27
2019-10-24 07:47:50 +01:00
, pbr, six, futures, monotonic, setuptools_scm
2019-01-10 17:14:54 +00:00
, pytest, sphinx, tornado
}:
buildPythonPackage rec {
pname = "tenacity";
2019-11-11 11:13:41 +00:00
version = "5.1.5";
2019-01-10 17:14:54 +00:00
src = fetchPypi {
inherit pname version;
2019-11-11 11:13:41 +00:00
sha256 = "e664bd94f088b17f46da33255ae33911ca6a0fe04b156d334b601a4ef66d3c5f";
2019-01-10 17:14:54 +00:00
};
2019-10-24 07:47:50 +01:00
nativeBuildInputs = [ pbr setuptools_scm ];
2019-01-10 17:14:54 +00:00
propagatedBuildInputs = [ six ]
++ lib.optionals isPy27 [ futures monotonic ];
checkInputs = [ pytest sphinx tornado ];
2019-10-24 07:47:50 +01:00
checkPhase = if isPy27 then ''
2019-01-10 17:14:54 +00:00
pytest --ignore='tenacity/tests/test_asyncio.py'
'' else ''
pytest
'';
meta = with lib; {
homepage = https://github.com/jd/tenacity;
description = "Retrying library for Python";
license = licenses.asl20;
maintainers = with maintainers; [ jakewaksbaum ];
};
}