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-12-19 19:31:23 +00:00
version = "6.0.0";
2019-01-10 17:14:54 +00:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:23 +00:00
sha256 = "72f397c2bb1887e048726603f3f629ea16f88cb3e61e4ed3c57e98582b8e3571";
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 ];
};
}