nixpkgs/pkgs/development/python-modules/async_stagger/default.nix
2020-11-17 19:23:17 -08:00

36 lines
745 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonOlder
, pytestCheckHook
, pytest-asyncio
, pytest-mock
}:
buildPythonPackage rec {
pname = "async_stagger";
version = "0.3.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1mj3daaqxjdavbxcjrdwx5ky9maa2blbv53aa6d7w9zxkrz3b7xa";
};
checkInputs = [
pytestCheckHook
pytest-asyncio
pytest-mock
];
pythonImportsCheck = [ "async_stagger" ];
meta = with lib; {
description = "Happy Eyeballs connection algorithm and underlying scheduling logic in asyncio";
homepage = "https://github.com/twisteroidambassador/async_stagger";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}