python.pkgs.ratelimiter: init at 1.2.0.post0

This commit is contained in:
Sebastian Meric de Bellefon 2018-08-29 10:26:46 -04:00 committed by Sebastian de Bellefon
parent c66c469433
commit c49e507bbc
3 changed files with 42 additions and 0 deletions

View file

@ -1630,6 +1630,11 @@
github = "heel";
name = "Sergii Paryzhskyi";
};
helkafen = {
email = "arnaudpourseb@gmail.com";
github = "Helkafen";
name = "Sébastian Méric de Bellefon";
};
henrytill = {
email = "henrytill@gmail.com";
github = "henrytill";

View file

@ -0,0 +1,35 @@
{
stdenv
, 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
'';
meta = with stdenv.lib; {
homepage = https://github.com/RazerM/ratelimiter;
license = licenses.asl20;
description = "Simple python rate limiting object";
maintainers = with maintainers; [ helkafen ];
};
}

View file

@ -4354,6 +4354,8 @@ in {
regex = callPackage ../development/python-modules/regex { };
ratelimiter = callPackage ../development/python-modules/ratelimiter { };
repoze_lru = buildPythonPackage rec {
name = "repoze.lru-0.6";