Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / async-stagger / default.nix
blob379056ad56f3ca49e43ca5f8418a1fac086b1975
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pytestCheckHook
6 , pytest-asyncio
7 , pytest-mock
8 }:
10 buildPythonPackage rec {
11   pname = "async-stagger";
12   version = "0.3.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     pname = "async_stagger";
19     inherit version;
20     hash = "sha256-qp81fp79J36aUWqUvegSStXkZ+m8Zcn62qrJjpVqQ9Y=";
21   };
23   nativeCheckInputs = [
24     pytestCheckHook
25     pytest-asyncio
26     pytest-mock
27   ];
29   disabledTests = [
30     # RuntimeError: Logic bug in...
31     "test_stagger_coro_gen"
32   ];
34   pythonImportsCheck = [
35     "async_stagger"
36   ];
38   meta = with lib; {
39     description = "Happy Eyeballs connection algorithm and underlying scheduling logic in asyncio";
40     homepage = "https://github.com/twisteroidambassador/async_stagger";
41     license = licenses.mit;
42     maintainers = with maintainers; [ hexa ];
43   };