pythonPackages.tenacity: init at 5.0.2
This commit is contained in:
parent
355d49cebb
commit
13d5fa6720
34
pkgs/development/python-modules/tenacity/default.nix
Normal file
34
pkgs/development/python-modules/tenacity/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||||
|
, pbr, six, futures, monotonic
|
||||||
|
, pytest, sphinx, tornado
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "tenacity";
|
||||||
|
version = "5.0.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1rjbj9wks7b7n75mbm01y0g2ngyai8yi05ck9gicmcdyix7vw42c";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -772,6 +772,8 @@ in {
|
|||||||
|
|
||||||
sniffio = callPackage ../development/python-modules/sniffio { };
|
sniffio = callPackage ../development/python-modules/sniffio { };
|
||||||
|
|
||||||
|
tenacity = callPackage ../development/python-modules/tenacity { };
|
||||||
|
|
||||||
tokenserver = callPackage ../development/python-modules/tokenserver {};
|
tokenserver = callPackage ../development/python-modules/tokenserver {};
|
||||||
|
|
||||||
toml = callPackage ../development/python-modules/toml { };
|
toml = callPackage ../development/python-modules/toml { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user