2018-08-29 15:26:46 +01:00
|
|
|
{
|
2021-01-25 08:26:54 +00:00
|
|
|
lib
|
2018-08-29 15:26:46 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ratelimiter";
|
|
|
|
version = "1.2.0.post0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "5c395dcabdbbde2e5178ef3f89b568a3066454a6ddc223b76473dac22f89b4f7";
|
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.utf-8";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/RazerM/ratelimiter";
|
2018-08-29 15:26:46 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Simple python rate limiting object";
|
|
|
|
maintainers = with maintainers; [ helkafen ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|