checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
771 B
Nix
37 lines
771 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "retry-decorator";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pnpnpn";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"retry_decorator"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Decorator for retrying when exceptions occur";
|
|
homepage = "https://github.com/pnpnpn/retry-decorator";
|
|
changelog = "https://github.com/pnpnpn/retry-decorator/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
};
|
|
}
|