depot/third_party/nixpkgs/pkgs/development/python-modules/throttler/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
836 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
aiohttp,
codecov,
flake8,
pytest,
pytest-asyncio,
pytest-cov,
}:
buildPythonPackage rec {
pname = "throttler";
version = "1.2.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "uburuntu";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
};
checkInputs = [
aiohttp
codecov
flake8
pytest
pytest-asyncio
pytest-cov
pytestCheckHook
];
pytestFlagsArray = [ "tests/" ];
meta = with lib; {
description = "Zero-dependency Python package for easy throttling with asyncio support";
homepage = "https://github.com/uburuntu/throttler";
license = licenses.mit;
maintainers = with maintainers; [ renatoGarcia ];
};
}