depot/third_party/nixpkgs/pkgs/development/python-modules/retry/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

43 lines
610 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, decorator
, py
, mock
, pytest
}:
buildPythonPackage rec {
pname = "retry";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
decorator
py
];
checkInputs = [
mock
pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Easy to use retry decorator";
homepage = "https://github.com/invl/retry";
license = licenses.asl20;
};
}