Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / justbackoff / default.nix
blobf07af6df2d2aad77d74d50f3e9539738a9d6f8e9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "justbackoff";
10   version = "0.6.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.8";
15   src = fetchFromGitHub {
16     owner = "alexferl";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "097j6jxgl4b3z46x9y9z10643vnr9v831vhagrxzrq6nviil2z6l";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   postPatch = ''
27     substituteInPlace setup.py \
28       --replace "pytest-runner>=5.2" ""
29   '';
31   pythonImportsCheck = [
32     "justbackoff"
33   ];
35   meta = with lib; {
36     description = "Simple backoff algorithm in Python";
37     homepage = "https://github.com/alexferl/justbackoff";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ fab ];
40   };